pub struct TdConfigFlags(/* private fields */);Implementations§
Source§impl TdConfigFlags
impl TdConfigFlags
Sourcepub const fn with_gpaw_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_gpaw_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
Sourcepub const fn flexible_pending_ve(&self) -> bool
pub const fn flexible_pending_ve(&self) -> bool
Bits: 1..2
Sourcepub const fn with_flexible_pending_ve_checked(
self,
value: bool,
) -> Result<Self, ()>
pub const fn with_flexible_pending_ve_checked( self, value: bool, ) -> Result<Self, ()>
Bits: 1..2
Sourcepub const fn with_flexible_pending_ve(self, value: bool) -> Self
pub const fn with_flexible_pending_ve(self, value: bool) -> Self
Bits: 1..2
Sourcepub const fn set_flexible_pending_ve(&mut self, value: bool)
pub const fn set_flexible_pending_ve(&mut self, value: bool)
Bits: 1..2
Sourcepub const fn set_flexible_pending_ve_checked(
&mut self,
value: bool,
) -> Result<(), ()>
pub const fn set_flexible_pending_ve_checked( &mut self, value: bool, ) -> Result<(), ()>
Bits: 1..2
Sourcepub const fn no_rbp_mod(&self) -> bool
pub const fn no_rbp_mod(&self) -> bool
Bits: 2..3
Sourcepub const fn with_no_rbp_mod_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_no_rbp_mod_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
Sourcepub const fn with_no_rbp_mod(self, value: bool) -> Self
pub const fn with_no_rbp_mod(self, value: bool) -> Self
Bits: 2..3
Sourcepub const fn set_no_rbp_mod(&mut self, value: bool)
pub const fn set_no_rbp_mod(&mut self, value: bool)
Bits: 2..3
Sourcepub const fn maxpa_virt(&self) -> bool
pub const fn maxpa_virt(&self) -> bool
Bits: 3..4
Sourcepub const fn with_maxpa_virt_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_maxpa_virt_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
Sourcepub const fn with_maxpa_virt(self, value: bool) -> Self
pub const fn with_maxpa_virt(self, value: bool) -> Self
Bits: 3..4
Sourcepub const fn set_maxpa_virt(&mut self, value: bool)
pub const fn set_maxpa_virt(&mut self, value: bool)
Bits: 3..4
Sourcepub const fn maxgpa_virt(&self) -> bool
pub const fn maxgpa_virt(&self) -> bool
Bits: 4..5
Sourcepub const fn with_maxgpa_virt_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_maxgpa_virt_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
Sourcepub const fn with_maxgpa_virt(self, value: bool) -> Self
pub const fn with_maxgpa_virt(self, value: bool) -> Self
Bits: 4..5
Sourcepub const fn set_maxgpa_virt(&mut self, value: bool)
pub const fn set_maxgpa_virt(&mut self, value: bool)
Bits: 4..5
Sourcepub const fn tdx_connect(&self) -> bool
pub const fn tdx_connect(&self) -> bool
Bits: 5..6
Sourcepub const fn with_tdx_connect_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_tdx_connect_checked(self, value: bool) -> Result<Self, ()>
Bits: 5..6
Sourcepub const fn with_tdx_connect(self, value: bool) -> Self
pub const fn with_tdx_connect(self, value: bool) -> Self
Bits: 5..6
Sourcepub const fn set_tdx_connect(&mut self, value: bool)
pub const fn set_tdx_connect(&mut self, value: bool)
Bits: 5..6
Sourcepub const fn page_release(&self) -> bool
pub const fn page_release(&self) -> bool
Bits: 6..7
Sourcepub const fn with_page_release_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_page_release_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
Sourcepub const fn with_page_release(self, value: bool) -> Self
pub const fn with_page_release(self, value: bool) -> Self
Bits: 6..7
Sourcepub const fn set_page_release(&mut self, value: bool)
pub const fn set_page_release(&mut self, value: bool)
Bits: 6..7
Sourcepub const fn with_sealing_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_sealing_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
Sourcepub const fn with_sealing(self, value: bool) -> Self
pub const fn with_sealing(self, value: bool) -> Self
Bits: 7..8
Sourcepub const fn set_sealing(&mut self, value: bool)
pub const fn set_sealing(&mut self, value: bool)
Bits: 7..8
Sourcepub const fn with_reserved_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_reserved_checked(self, value: u64) -> Result<Self, ()>
Bits: 8..64
Sourcepub const fn with_reserved(self, value: u64) -> Self
pub const fn with_reserved(self, value: u64) -> Self
Bits: 8..64
Sourcepub const fn set_reserved(&mut self, value: u64)
pub const fn set_reserved(&mut self, value: u64)
Bits: 8..64
Trait Implementations§
Source§impl Clone for TdConfigFlags
impl Clone for TdConfigFlags
Source§fn clone(&self) -> TdConfigFlags
fn clone(&self) -> TdConfigFlags
Returns a duplicate of the value. Read more
1.0.0 · 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 TdConfigFlags
impl Debug for TdConfigFlags
Source§impl Default for TdConfigFlags
impl Default for TdConfigFlags
Source§impl From<TdConfigFlags> for u64
impl From<TdConfigFlags> for u64
Source§fn from(v: TdConfigFlags) -> u64
fn from(v: TdConfigFlags) -> u64
Converts to this type from the input type.
Source§impl From<u64> for TdConfigFlags
impl From<u64> for TdConfigFlags
impl Copy for TdConfigFlags
Auto Trait Implementations§
impl Freeze for TdConfigFlags
impl RefUnwindSafe for TdConfigFlags
impl Send for TdConfigFlags
impl Sync for TdConfigFlags
impl Unpin for TdConfigFlags
impl UnsafeUnpin for TdConfigFlags
impl UnwindSafe for TdConfigFlags
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