#[repr(u32)]pub enum DeviceAddressingMode {
None = 0,
Hmm = 1,
Ats = 2,
}Expand description
Enum to represent device addressing mode values.
Variants§
None = 0
No active mode.
Hmm = 1
Heterogeneous Memory Management mode.
Ats = 2
Address Translation Services mode.
Trait Implementations§
Source§impl Clone for DeviceAddressingMode
impl Clone for DeviceAddressingMode
Source§fn clone(&self) -> DeviceAddressingMode
fn clone(&self) -> DeviceAddressingMode
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 DeviceAddressingMode
impl Debug for DeviceAddressingMode
Source§impl From<DeviceAddressingMode> for nvmlDeviceAddressingModeType_t
impl From<DeviceAddressingMode> for nvmlDeviceAddressingModeType_t
Source§fn from(value: DeviceAddressingMode) -> Self
fn from(value: DeviceAddressingMode) -> Self
Converts to this type from the input type.
Source§impl From<DeviceAddressingMode> for u32
impl From<DeviceAddressingMode> for u32
Source§fn from(enum_value: DeviceAddressingMode) -> Self
fn from(enum_value: DeviceAddressingMode) -> Self
Converts to this type from the input type.
Source§impl From<nvmlDeviceAddressingModeType_t> for DeviceAddressingMode
impl From<nvmlDeviceAddressingModeType_t> for DeviceAddressingMode
Source§fn from(value: nvmlDeviceAddressingModeType_t) -> Self
fn from(value: nvmlDeviceAddressingModeType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for DeviceAddressingMode
impl Hash for DeviceAddressingMode
Source§impl PartialEq for DeviceAddressingMode
impl PartialEq for DeviceAddressingMode
Source§fn eq(&self, other: &DeviceAddressingMode) -> bool
fn eq(&self, other: &DeviceAddressingMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for DeviceAddressingMode
impl TryFrom<u32> for DeviceAddressingMode
Source§type Error = TryFromPrimitiveError<DeviceAddressingMode>
type Error = TryFromPrimitiveError<DeviceAddressingMode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DeviceAddressingMode
impl TryFromPrimitive for DeviceAddressingMode
const NAME: &'static str = "DeviceAddressingMode"
type Primitive = u32
type Error = TryFromPrimitiveError<DeviceAddressingMode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for DeviceAddressingMode
impl Eq for DeviceAddressingMode
impl StructuralPartialEq for DeviceAddressingMode
Auto Trait Implementations§
impl Freeze for DeviceAddressingMode
impl RefUnwindSafe for DeviceAddressingMode
impl Send for DeviceAddressingMode
impl Sync for DeviceAddressingMode
impl Unpin for DeviceAddressingMode
impl UnsafeUnpin for DeviceAddressingMode
impl UnwindSafe for DeviceAddressingMode
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