#[non_exhaustive]#[repr(u32)]pub enum cudaExternalSemaphoreHandleType {
cudaExternalSemaphoreHandleTypeOpaqueFd = 1,
cudaExternalSemaphoreHandleTypeOpaqueWin32 = 2,
cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3,
cudaExternalSemaphoreHandleTypeD3D12Fence = 4,
cudaExternalSemaphoreHandleTypeD3D11Fence = 5,
cudaExternalSemaphoreHandleTypeNvSciSync = 6,
cudaExternalSemaphoreHandleTypeKeyedMutex = 7,
cudaExternalSemaphoreHandleTypeKeyedMutexKmt = 8,
cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd = 9,
cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = 10,
}
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.
cudaExternalSemaphoreHandleTypeOpaqueFd = 1
cudaExternalSemaphoreHandleTypeOpaqueWin32 = 2
cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3
cudaExternalSemaphoreHandleTypeD3D12Fence = 4
cudaExternalSemaphoreHandleTypeD3D11Fence = 5
cudaExternalSemaphoreHandleTypeNvSciSync = 6
cudaExternalSemaphoreHandleTypeKeyedMutex = 7
cudaExternalSemaphoreHandleTypeKeyedMutexKmt = 8
cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd = 9
cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = 10
Trait Implementations§
source§impl Clone for cudaExternalSemaphoreHandleType
impl Clone for cudaExternalSemaphoreHandleType
source§fn clone(&self) -> cudaExternalSemaphoreHandleType
fn clone(&self) -> cudaExternalSemaphoreHandleType
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 cudaExternalSemaphoreHandleType
impl PartialEq for cudaExternalSemaphoreHandleType
source§fn eq(&self, other: &cudaExternalSemaphoreHandleType) -> bool
fn eq(&self, other: &cudaExternalSemaphoreHandleType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for cudaExternalSemaphoreHandleType
impl Eq for cudaExternalSemaphoreHandleType
impl StructuralPartialEq for cudaExternalSemaphoreHandleType
Auto Trait Implementations§
impl RefUnwindSafe for cudaExternalSemaphoreHandleType
impl Send for cudaExternalSemaphoreHandleType
impl Sync for cudaExternalSemaphoreHandleType
impl Unpin for cudaExternalSemaphoreHandleType
impl UnwindSafe for cudaExternalSemaphoreHandleType
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