#[repr(C)]pub struct cudaExternalMemoryHandleDesc__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:
- ::cudaExternalMemoryHandleTypeOpaqueWin32
- ::cudaExternalMemoryHandleTypeOpaqueWin32Kmt
- ::cudaExternalMemoryHandleTypeD3D12Heap
- ::cudaExternalMemoryHandleTypeD3D12Resource
- ::cudaExternalMemoryHandleTypeD3D11Resource
- ::cudaExternalMemoryHandleTypeD3D11ResourceKmt Exactly one of ‘handle’ and ‘name’ must be non-NULL. If type is one of the following: ::cudaExternalMemoryHandleTypeOpaqueWin32Kmt ::cudaExternalMemoryHandleTypeD3D11ResourceKmt 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 memory object. Must be NULL if ‘handle’ is non-NULL.
Trait Implementations§
Source§impl Clone for cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
impl Clone for cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
Source§fn clone(&self) -> cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
fn clone(&self) -> cudaExternalMemoryHandleDesc__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 cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
Auto Trait Implementations§
impl Freeze for cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
impl RefUnwindSafe for cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
impl !Send for cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
impl !Sync for cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
impl Unpin for cudaExternalMemoryHandleDesc__bindgen_ty_1__bindgen_ty_1
impl UnwindSafe for cudaExternalMemoryHandleDesc__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