pub struct MemoryAffinityStructureFlags(/* private fields */);Expand description
§Flags - Memory Affinity Structure
Implementations§
Source§impl MemoryAffinityStructureFlags
impl MemoryAffinityStructureFlags
Sourcepub const fn enabled(&self) -> bool
pub const fn enabled(&self) -> bool
If clear, the OSPM ignores the contents of the Memory Affinity Structure. This allows system firmware to populate the SRAT with a static number of structures but only enable then as necessary.
Sourcepub const fn hot_pluggable(&self) -> bool
pub const fn hot_pluggable(&self) -> bool
The information conveyed by this bit depends on the value of the Enabled bit.
If the Enabled bit is set and the Hot Pluggable bit is also set. The system hardware supports hot-add and hot-remove of this memory region If the Enabled bit is set and the Hot Pluggable bit is clear, the system hardware does not support hot-add or hot-remove of this memory region.
If the Enabled bit is clear, the OSPM will ignore the contents of the Memory Affinity Structure
Sourcepub const fn non_volatile(&self) -> bool
pub const fn non_volatile(&self) -> bool
If set, the memory region represents Non-Volatile memory
Trait Implementations§
Source§impl Clone for MemoryAffinityStructureFlags
impl Clone for MemoryAffinityStructureFlags
Source§fn clone(&self) -> MemoryAffinityStructureFlags
fn clone(&self) -> MemoryAffinityStructureFlags
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 moreimpl Copy for MemoryAffinityStructureFlags
Auto Trait Implementations§
impl Freeze for MemoryAffinityStructureFlags
impl RefUnwindSafe for MemoryAffinityStructureFlags
impl Send for MemoryAffinityStructureFlags
impl Sync for MemoryAffinityStructureFlags
impl Unpin for MemoryAffinityStructureFlags
impl UnwindSafe for MemoryAffinityStructureFlags
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