pub struct Control(/* private fields */);
Expand description
The hypercall input value.
Implementations§
source§impl Control
impl Control
sourcepub const fn with_fast(self, value: bool) -> Self
pub const fn with_fast(self, value: bool) -> Self
If this hypercall is a fast hypercall.
Bits: 16..17
sourcepub const fn variable_header_size(&self) -> usize
pub const fn variable_header_size(&self) -> usize
The variable header size, in qwords.
Bits: 17..27
sourcepub const fn with_variable_header_size(self, value: usize) -> Self
pub const fn with_variable_header_size(self, value: usize) -> Self
The variable header size, in qwords.
Bits: 17..27
sourcepub fn set_variable_header_size(&mut self, value: usize)
pub fn set_variable_header_size(&mut self, value: usize)
The variable header size, in qwords.
Bits: 17..27
sourcepub const fn nested(&self) -> bool
pub const fn nested(&self) -> bool
Specifies that the hypercall should be handled by the L0 hypervisor in a nested environment.
Bits: 31..32
sourcepub const fn with_nested(self, value: bool) -> Self
pub const fn with_nested(self, value: bool) -> Self
Specifies that the hypercall should be handled by the L0 hypervisor in a nested environment.
Bits: 31..32
sourcepub fn set_nested(&mut self, value: bool)
pub fn set_nested(&mut self, value: bool)
Specifies that the hypercall should be handled by the L0 hypervisor in a nested environment.
Bits: 31..32
sourcepub const fn with_rep_count(self, value: usize) -> Self
pub const fn with_rep_count(self, value: usize) -> Self
The element count for rep hypercalls.
Bits: 32..44
sourcepub fn set_rep_count(&mut self, value: usize)
pub fn set_rep_count(&mut self, value: usize)
The element count for rep hypercalls.
Bits: 32..44
sourcepub const fn rep_start(&self) -> usize
pub const fn rep_start(&self) -> usize
The first element to start processing in a rep hypercall.
Bits: 48..60
sourcepub const fn with_rep_start(self, value: usize) -> Self
pub const fn with_rep_start(self, value: usize) -> Self
The first element to start processing in a rep hypercall.
Bits: 48..60
sourcepub fn set_rep_start(&mut self, value: usize)
pub fn set_rep_start(&mut self, value: usize)
The first element to start processing in a rep hypercall.
Bits: 48..60
Trait Implementations§
impl Copy for Control
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)