#[repr(C)]pub struct cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1 {
pub handle: *mut c_void,
pub name: *const c_void,
}
Expand description
Win32 handle referencing the semaphore object. Valid when type is one of the following:
- ::cudaExternalSemaphoreHandleTypeOpaqueWin32
- ::cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt
- ::cudaExternalSemaphoreHandleTypeD3D12Fence
- ::cudaExternalSemaphoreHandleTypeD3D11Fence
- ::cudaExternalSemaphoreHandleTypeKeyedMutex
- ::cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 Exactly one of ‘handle’ and ‘name’ must be non-NULL. If type is one of the following: ::cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt ::cudaExternalSemaphoreHandleTypeKeyedMutexKmt then ‘name’ must be NULL.
Fields§
§handle: *mut c_void
Valid NT handle. Must be NULL if ‘name’ is non-NULL
name: *const c_void
Name of a valid synchronization primitive. Must be NULL if ‘handle’ is non-NULL.
Trait Implementations§
Source§impl Clone for cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
impl Clone for cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
Source§fn clone(&self) -> cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
fn clone(&self) -> cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
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 moreimpl Copy for cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
Auto Trait Implementations§
impl Freeze for cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
impl RefUnwindSafe for cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
impl !Send for cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
impl !Sync for cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
impl Unpin for cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
impl UnwindSafe for cudaExternalSemaphoreHandleDesc__bindgen_ty_1__bindgen_ty_1
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