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