pub struct DmarTarget(/* private fields */);Expand description
RDX (DMAR_TARGET) input to TDG.DMAR.ACCEPT. vm_idx = 0 for a
non-partitioned TD or L1; 1-3 select L2 VM1-VM3 (reassignment path).
Implementations§
Source§impl DmarTarget
impl DmarTarget
Sourcepub const fn with_vm_idx_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_vm_idx_checked(self, value: u8) -> Result<Self, ()>
Bits: 0..8
Sourcepub const fn with_vm_idx(self, value: u8) -> Self
pub const fn with_vm_idx(self, value: u8) -> Self
Bits: 0..8
Sourcepub const fn set_vm_idx(&mut self, value: u8)
pub const fn set_vm_idx(&mut self, value: u8)
Bits: 0..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 DmarTarget
impl Clone for DmarTarget
Source§fn clone(&self) -> DmarTarget
fn clone(&self) -> DmarTarget
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 DmarTarget
impl Debug for DmarTarget
Source§impl Default for DmarTarget
impl Default for DmarTarget
Source§impl From<DmarTarget> for u64
impl From<DmarTarget> for u64
Source§fn from(v: DmarTarget) -> u64
fn from(v: DmarTarget) -> u64
Converts to this type from the input type.
Source§impl From<u64> for DmarTarget
impl From<u64> for DmarTarget
impl Copy for DmarTarget
Auto Trait Implementations§
impl Freeze for DmarTarget
impl RefUnwindSafe for DmarTarget
impl Send for DmarTarget
impl Sync for DmarTarget
impl Unpin for DmarTarget
impl UnsafeUnpin for DmarTarget
impl UnwindSafe for DmarTarget
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