#[non_exhaustive]#[repr(u32)]pub enum PointerAttribute {
Show 20 variants
Context = 1,
MemoryType = 2,
DevicePointer = 3,
HostPointer = 4,
P2pTokens = 5,
SyncMemops = 6,
BufferId = 7,
IsManaged = 8,
DeviceOrdinal = 9,
IsLegacyCudaIpcCapable = 10,
RangeStartAddr = 11,
RangeSize = 12,
Mapped = 13,
AllowedHandleTypes = 14,
IsGpuDirectRdmaCapable = 15,
AccessFlags = 16,
MempoolHandle = 17,
MappingSize = 18,
MappingBaseAddr = 19,
MemoryBlockId = 20,
}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.
Context = 1
MemoryType = 2
DevicePointer = 3
HostPointer = 4
P2pTokens = 5
SyncMemops = 6
BufferId = 7
IsManaged = 8
DeviceOrdinal = 9
IsLegacyCudaIpcCapable = 10
RangeStartAddr = 11
RangeSize = 12
Mapped = 13
AllowedHandleTypes = 14
IsGpuDirectRdmaCapable = 15
AccessFlags = 16
MempoolHandle = 17
MappingSize = 18
MappingBaseAddr = 19
MemoryBlockId = 20
Trait Implementations§
Source§impl Clone for PointerAttribute
impl Clone for PointerAttribute
Source§fn clone(&self) -> PointerAttribute
fn clone(&self) -> PointerAttribute
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 PointerAttribute
Source§impl Debug for PointerAttribute
impl Debug for PointerAttribute
Source§impl Display for PointerAttribute
impl Display for PointerAttribute
impl Eq for PointerAttribute
Source§impl From<CUpointer_attribute_enum> for PointerAttribute
impl From<CUpointer_attribute_enum> for PointerAttribute
Source§fn from(value: CUpointer_attribute) -> Self
fn from(value: CUpointer_attribute) -> Self
Converts to this type from the input type.
Source§impl From<PointerAttribute> for u32
impl From<PointerAttribute> for u32
Source§fn from(enum_value: PointerAttribute) -> Self
fn from(enum_value: PointerAttribute) -> Self
Converts to this type from the input type.
Source§impl From<PointerAttribute> for CUpointer_attribute
impl From<PointerAttribute> for CUpointer_attribute
Source§fn from(value: PointerAttribute) -> Self
fn from(value: PointerAttribute) -> Self
Converts to this type from the input type.
Source§impl Hash for PointerAttribute
impl Hash for PointerAttribute
Source§impl PartialEq for PointerAttribute
impl PartialEq for PointerAttribute
Source§fn eq(&self, other: &PointerAttribute) -> bool
fn eq(&self, other: &PointerAttribute) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PointerAttribute
Source§impl TryFrom<u32> for PointerAttribute
impl TryFrom<u32> for PointerAttribute
Source§type Error = TryFromPrimitiveError<PointerAttribute>
type Error = TryFromPrimitiveError<PointerAttribute>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PointerAttribute
impl TryFromPrimitive for PointerAttribute
const NAME: &'static str = "PointerAttribute"
type Primitive = u32
type Error = TryFromPrimitiveError<PointerAttribute>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PointerAttribute
impl RefUnwindSafe for PointerAttribute
impl Send for PointerAttribute
impl Sync for PointerAttribute
impl Unpin for PointerAttribute
impl UnsafeUnpin for PointerAttribute
impl UnwindSafe for PointerAttribute
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