#[non_exhaustive]#[repr(u32)]pub enum CUmemAllocationHandleType {
None = 0,
PosixFileDescriptor = 1,
Win32 = 2,
Win32Kmt = 4,
Fabric = 8,
}Expand description
Set of operating-system handle types that the driver may export for a VMM allocation. Treated as a bitfield in the CUDA C API.
Mirrors CUmemAllocationHandleType in cuda.h.
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.
None = 0
No exportable handle is requested.
PosixFileDescriptor = 1
POSIX file descriptor (Linux).
Win32 = 2
Win32 NT handle.
Win32Kmt = 4
Win32 KMT handle (legacy kernel-mode-thunk).
Fabric = 8
Fabric handle for multi-host shared memory (CUDA 12.0+).
Trait Implementations§
Source§impl Clone for CUmemAllocationHandleType
impl Clone for CUmemAllocationHandleType
Source§fn clone(&self) -> CUmemAllocationHandleType
fn clone(&self) -> CUmemAllocationHandleType
Returns a duplicate of the value. Read more
1.0.0 · 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 CUmemAllocationHandleType
impl Debug for CUmemAllocationHandleType
Source§impl Hash for CUmemAllocationHandleType
impl Hash for CUmemAllocationHandleType
impl Copy for CUmemAllocationHandleType
impl Eq for CUmemAllocationHandleType
impl StructuralPartialEq for CUmemAllocationHandleType
Auto Trait Implementations§
impl Freeze for CUmemAllocationHandleType
impl RefUnwindSafe for CUmemAllocationHandleType
impl Send for CUmemAllocationHandleType
impl Sync for CUmemAllocationHandleType
impl Unpin for CUmemAllocationHandleType
impl UnsafeUnpin for CUmemAllocationHandleType
impl UnwindSafe for CUmemAllocationHandleType
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