#[non_exhaustive]#[repr(u32)]pub enum CUmemAllocationHandleType_enum {
CU_MEM_HANDLE_TYPE_NONE = 0,
CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR = 1,
CU_MEM_HANDLE_TYPE_WIN32 = 2,
CU_MEM_HANDLE_TYPE_WIN32_KMT = 4,
CU_MEM_HANDLE_TYPE_MAX = 2_147_483_647,
}Expand description
Flags for specifying particular handle types
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.
CU_MEM_HANDLE_TYPE_NONE = 0
< Does not allow any export mechanism. >
CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR = 1
< Allows a file descriptor to be used for exporting. Permitted only on POSIX systems. (int)
CU_MEM_HANDLE_TYPE_WIN32 = 2
< Allows a Win32 NT handle to be used for exporting. (HANDLE)
CU_MEM_HANDLE_TYPE_WIN32_KMT = 4
< Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE)
CU_MEM_HANDLE_TYPE_MAX = 2_147_483_647
Trait Implementations§
source§impl Clone for CUmemAllocationHandleType_enum
impl Clone for CUmemAllocationHandleType_enum
source§fn clone(&self) -> CUmemAllocationHandleType_enum
fn clone(&self) -> CUmemAllocationHandleType_enum
Returns a copy 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 PartialEq for CUmemAllocationHandleType_enum
impl PartialEq for CUmemAllocationHandleType_enum
source§fn eq(&self, other: &CUmemAllocationHandleType_enum) -> bool
fn eq(&self, other: &CUmemAllocationHandleType_enum) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for CUmemAllocationHandleType_enum
impl Eq for CUmemAllocationHandleType_enum
impl StructuralPartialEq for CUmemAllocationHandleType_enum
Auto Trait Implementations§
impl RefUnwindSafe for CUmemAllocationHandleType_enum
impl Send for CUmemAllocationHandleType_enum
impl Sync for CUmemAllocationHandleType_enum
impl Unpin for CUmemAllocationHandleType_enum
impl UnwindSafe for CUmemAllocationHandleType_enum
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