pub struct IpcEventHandle(/* private fields */);Expand description
An opaque CUDA IPC event export token that can be copied between processes.
This token does not own the exporting event or an imported event handle.
Implementations§
Source§impl IpcEventHandle
impl IpcEventHandle
Sourcepub const unsafe fn from_raw(handle: cudaIpcEventHandle_t) -> Self
pub const unsafe fn from_raw(handle: cudaIpcEventHandle_t) -> Self
Wraps an exported native IPC event token without importing the event.
§Safety
Any subsequent event import must use an unchanged token exported by CUDA for a live IPC-capable event. Coordinate the exporting event’s lifetime with every process importing or using it.
Sourcepub const fn zeroed() -> Self
pub const fn zeroed() -> Self
Creates a zero-filled placeholder token.
The result does not identify an exported event resource.
Sourcepub const fn as_raw(&self) -> cudaIpcEventHandle_t
pub const fn as_raw(&self) -> cudaIpcEventHandle_t
Returns a copy of the native IPC event token without importing or retaining its resource.
Trait Implementations§
Source§impl Clone for IpcEventHandle
impl Clone for IpcEventHandle
impl Copy for IpcEventHandle
Source§impl Debug for IpcEventHandle
impl Debug for IpcEventHandle
impl Eq for IpcEventHandle
Source§impl Hash for IpcEventHandle
impl Hash for IpcEventHandle
Source§impl PartialEq for IpcEventHandle
impl PartialEq for IpcEventHandle
impl StructuralPartialEq for IpcEventHandle
Auto Trait Implementations§
impl Forget for IpcEventHandle
impl Freeze for IpcEventHandle
impl Move for IpcEventHandle
impl RefUnwindSafe for IpcEventHandle
impl Send for IpcEventHandle
impl Sync for IpcEventHandle
impl Unpin for IpcEventHandle
impl UnsafeUnpin for IpcEventHandle
impl UnwindSafe for IpcEventHandle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.