pub struct TdgTdiMmioAcceptRcx(/* private fields */);Expand description
RCX (GPA_BASE_AND_LVL) input to TDG.TDI.MMIO.ACCEPT. Also decodes the
resumed GPA returned in RCX. Mirrors TdgMemPageAcceptRcx.
Implementations§
Source§impl TdgTdiMmioAcceptRcx
impl TdgTdiMmioAcceptRcx
Sourcepub const fn level(&self) -> TdgMemPageLevel
pub const fn level(&self) -> TdgMemPageLevel
Bits: 0..3
Sourcepub const fn with_level_checked(
self,
value: TdgMemPageLevel,
) -> Result<Self, ()>
pub const fn with_level_checked( self, value: TdgMemPageLevel, ) -> Result<Self, ()>
Bits: 0..3
Sourcepub const fn with_level(self, value: TdgMemPageLevel) -> Self
pub const fn with_level(self, value: TdgMemPageLevel) -> Self
Bits: 0..3
Sourcepub const fn set_level(&mut self, value: TdgMemPageLevel)
pub const fn set_level(&mut self, value: TdgMemPageLevel)
Bits: 0..3
Sourcepub const fn set_level_checked(
&mut self,
value: TdgMemPageLevel,
) -> Result<(), ()>
pub const fn set_level_checked( &mut self, value: TdgMemPageLevel, ) -> Result<(), ()>
Bits: 0..3
Sourcepub const fn with_reserved_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_reserved_checked(self, value: u64) -> Result<Self, ()>
Bits: 3..12
Sourcepub const fn with_reserved(self, value: u64) -> Self
pub const fn with_reserved(self, value: u64) -> Self
Bits: 3..12
Sourcepub const fn set_reserved(&mut self, value: u64)
pub const fn set_reserved(&mut self, value: u64)
Bits: 3..12
Sourcepub const fn gpa_page_number(&self) -> u64
pub const fn gpa_page_number(&self) -> u64
The MMIO page number for this accept call.
Bits: 12..52
Sourcepub const fn with_gpa_page_number_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_gpa_page_number_checked(self, value: u64) -> Result<Self, ()>
The MMIO page number for this accept call.
Bits: 12..52
Sourcepub const fn with_gpa_page_number(self, value: u64) -> Self
pub const fn with_gpa_page_number(self, value: u64) -> Self
The MMIO page number for this accept call.
Bits: 12..52
Sourcepub const fn set_gpa_page_number(&mut self, value: u64)
pub const fn set_gpa_page_number(&mut self, value: u64)
The MMIO page number for this accept call.
Bits: 12..52
Sourcepub const fn set_gpa_page_number_checked(
&mut self,
value: u64,
) -> Result<(), ()>
pub const fn set_gpa_page_number_checked( &mut self, value: u64, ) -> Result<(), ()>
The MMIO page number for this accept call.
Bits: 12..52
Sourcepub const fn with_reserved2_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_reserved2_checked(self, value: u64) -> Result<Self, ()>
Bits: 52..64
Sourcepub const fn with_reserved2(self, value: u64) -> Self
pub const fn with_reserved2(self, value: u64) -> Self
Bits: 52..64
Sourcepub const fn set_reserved2(&mut self, value: u64)
pub const fn set_reserved2(&mut self, value: u64)
Bits: 52..64
Trait Implementations§
Source§impl Clone for TdgTdiMmioAcceptRcx
impl Clone for TdgTdiMmioAcceptRcx
Source§fn clone(&self) -> TdgTdiMmioAcceptRcx
fn clone(&self) -> TdgTdiMmioAcceptRcx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TdgTdiMmioAcceptRcx
impl Debug for TdgTdiMmioAcceptRcx
Source§impl Default for TdgTdiMmioAcceptRcx
impl Default for TdgTdiMmioAcceptRcx
Source§impl From<TdgTdiMmioAcceptRcx> for u64
impl From<TdgTdiMmioAcceptRcx> for u64
Source§fn from(v: TdgTdiMmioAcceptRcx) -> u64
fn from(v: TdgTdiMmioAcceptRcx) -> u64
Converts to this type from the input type.
Source§impl From<u64> for TdgTdiMmioAcceptRcx
impl From<u64> for TdgTdiMmioAcceptRcx
impl Copy for TdgTdiMmioAcceptRcx
Auto Trait Implementations§
impl Freeze for TdgTdiMmioAcceptRcx
impl RefUnwindSafe for TdgTdiMmioAcceptRcx
impl Send for TdgTdiMmioAcceptRcx
impl Sync for TdgTdiMmioAcceptRcx
impl Unpin for TdgTdiMmioAcceptRcx
impl UnsafeUnpin for TdgTdiMmioAcceptRcx
impl UnwindSafe for TdgTdiMmioAcceptRcx
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
Mutably borrows from an owned value. Read more