#[non_exhaustive]#[repr(u32)]pub enum PeerToPeerAttribute {
PerformanceRank = 1,
AccessSupported = 2,
NativeAtomicSupported = 3,
CudaArrayAccessSupported = 4,
}Expand description
Attributes queryable between two devices using Device::p2p_attribute.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PerformanceRank = 1
AccessSupported = 2
NativeAtomicSupported = 3
CudaArrayAccessSupported = 4
👎Deprecated
Trait Implementations§
Source§impl Clone for PeerToPeerAttribute
impl Clone for PeerToPeerAttribute
Source§fn clone(&self) -> PeerToPeerAttribute
fn clone(&self) -> PeerToPeerAttribute
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 moreimpl Copy for PeerToPeerAttribute
Source§impl Debug for PeerToPeerAttribute
impl Debug for PeerToPeerAttribute
Source§impl Display for PeerToPeerAttribute
impl Display for PeerToPeerAttribute
impl Eq for PeerToPeerAttribute
Source§impl From<CUdevice_P2PAttribute_enum> for PeerToPeerAttribute
impl From<CUdevice_P2PAttribute_enum> for PeerToPeerAttribute
Source§fn from(value: cudaDeviceP2PAttr) -> Self
fn from(value: cudaDeviceP2PAttr) -> Self
Converts to this type from the input type.
Source§impl From<PeerToPeerAttribute> for u32
impl From<PeerToPeerAttribute> for u32
Source§fn from(enum_value: PeerToPeerAttribute) -> Self
fn from(enum_value: PeerToPeerAttribute) -> Self
Converts to this type from the input type.
Source§impl From<PeerToPeerAttribute> for cudaDeviceP2PAttr
impl From<PeerToPeerAttribute> for cudaDeviceP2PAttr
Source§fn from(value: PeerToPeerAttribute) -> Self
fn from(value: PeerToPeerAttribute) -> Self
Converts to this type from the input type.
Source§impl Hash for PeerToPeerAttribute
impl Hash for PeerToPeerAttribute
Source§impl PartialEq for PeerToPeerAttribute
impl PartialEq for PeerToPeerAttribute
Source§fn eq(&self, other: &PeerToPeerAttribute) -> bool
fn eq(&self, other: &PeerToPeerAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PeerToPeerAttribute
Source§impl TryFrom<u32> for PeerToPeerAttribute
impl TryFrom<u32> for PeerToPeerAttribute
Source§type Error = TryFromPrimitiveError<PeerToPeerAttribute>
type Error = TryFromPrimitiveError<PeerToPeerAttribute>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PeerToPeerAttribute
impl TryFromPrimitive for PeerToPeerAttribute
const NAME: &'static str = "PeerToPeerAttribute"
type Primitive = u32
type Error = TryFromPrimitiveError<PeerToPeerAttribute>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PeerToPeerAttribute
impl RefUnwindSafe for PeerToPeerAttribute
impl Send for PeerToPeerAttribute
impl Sync for PeerToPeerAttribute
impl Unpin for PeerToPeerAttribute
impl UnsafeUnpin for PeerToPeerAttribute
impl UnwindSafe for PeerToPeerAttribute
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