#[repr(u32)]pub enum NvLinkRemoteDeviceType {
Gpu = 0,
IbmNpu = 1,
Switch = 2,
Unknown = 255,
}Variants§
Trait Implementations§
Source§impl Clone for NvLinkRemoteDeviceType
impl Clone for NvLinkRemoteDeviceType
Source§fn clone(&self) -> NvLinkRemoteDeviceType
fn clone(&self) -> NvLinkRemoteDeviceType
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 NvLinkRemoteDeviceType
impl Debug for NvLinkRemoteDeviceType
Source§impl From<NvLinkRemoteDeviceType> for nvmlIntNvLinkDeviceType_t
impl From<NvLinkRemoteDeviceType> for nvmlIntNvLinkDeviceType_t
Source§fn from(value: NvLinkRemoteDeviceType) -> Self
fn from(value: NvLinkRemoteDeviceType) -> Self
Converts to this type from the input type.
Source§impl From<NvLinkRemoteDeviceType> for u32
impl From<NvLinkRemoteDeviceType> for u32
Source§fn from(enum_value: NvLinkRemoteDeviceType) -> Self
fn from(enum_value: NvLinkRemoteDeviceType) -> Self
Converts to this type from the input type.
Source§impl From<nvmlIntNvLinkDeviceType_enum> for NvLinkRemoteDeviceType
impl From<nvmlIntNvLinkDeviceType_enum> for NvLinkRemoteDeviceType
Source§fn from(value: nvmlIntNvLinkDeviceType_t) -> Self
fn from(value: nvmlIntNvLinkDeviceType_t) -> Self
Converts to this type from the input type.
Source§impl Hash for NvLinkRemoteDeviceType
impl Hash for NvLinkRemoteDeviceType
Source§impl PartialEq for NvLinkRemoteDeviceType
impl PartialEq for NvLinkRemoteDeviceType
Source§fn eq(&self, other: &NvLinkRemoteDeviceType) -> bool
fn eq(&self, other: &NvLinkRemoteDeviceType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u32> for NvLinkRemoteDeviceType
impl TryFrom<u32> for NvLinkRemoteDeviceType
Source§type Error = TryFromPrimitiveError<NvLinkRemoteDeviceType>
type Error = TryFromPrimitiveError<NvLinkRemoteDeviceType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for NvLinkRemoteDeviceType
impl TryFromPrimitive for NvLinkRemoteDeviceType
const NAME: &'static str = "NvLinkRemoteDeviceType"
type Primitive = u32
type Error = TryFromPrimitiveError<NvLinkRemoteDeviceType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for NvLinkRemoteDeviceType
impl Eq for NvLinkRemoteDeviceType
impl StructuralPartialEq for NvLinkRemoteDeviceType
Auto Trait Implementations§
impl Freeze for NvLinkRemoteDeviceType
impl RefUnwindSafe for NvLinkRemoteDeviceType
impl Send for NvLinkRemoteDeviceType
impl Sync for NvLinkRemoteDeviceType
impl Unpin for NvLinkRemoteDeviceType
impl UnsafeUnpin for NvLinkRemoteDeviceType
impl UnwindSafe for NvLinkRemoteDeviceType
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