#[non_exhaustive]#[repr(u32)]pub enum cudaMemAllocationHandleType {
cudaMemHandleTypeNone = 0,
cudaMemHandleTypePosixFileDescriptor = 1,
cudaMemHandleTypeWin32 = 2,
cudaMemHandleTypeWin32Kmt = 4,
}
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.
cudaMemHandleTypeNone = 0
< Does not allow any export mechanism. >
cudaMemHandleTypePosixFileDescriptor = 1
< Allows a file descriptor to be used for exporting. Permitted only on POSIX systems. (int)
cudaMemHandleTypeWin32 = 2
< Allows a Win32 NT handle to be used for exporting. (HANDLE)
cudaMemHandleTypeWin32Kmt = 4
< Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE)
Trait Implementations§
Source§impl Clone for cudaMemAllocationHandleType
impl Clone for cudaMemAllocationHandleType
Source§fn clone(&self) -> cudaMemAllocationHandleType
fn clone(&self) -> cudaMemAllocationHandleType
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 cudaMemAllocationHandleType
impl Debug for cudaMemAllocationHandleType
Source§impl Hash for cudaMemAllocationHandleType
impl Hash for cudaMemAllocationHandleType
impl Copy for cudaMemAllocationHandleType
impl Eq for cudaMemAllocationHandleType
impl StructuralPartialEq for cudaMemAllocationHandleType
Auto Trait Implementations§
impl Freeze for cudaMemAllocationHandleType
impl RefUnwindSafe for cudaMemAllocationHandleType
impl Send for cudaMemAllocationHandleType
impl Sync for cudaMemAllocationHandleType
impl Unpin for cudaMemAllocationHandleType
impl UnwindSafe for cudaMemAllocationHandleType
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