pub struct Event { /* private fields */ }Expand description
Typed handle to a CudaEvent. Cloneable via Arc; the underlying
cuEventDestroy is run when the last clone drops.
Implementations§
Source§impl Event
impl Event
Sourcepub fn from_cuda(event: CudaEvent) -> Self
pub fn from_cuda(event: CudaEvent) -> Self
Wrap an already-created CudaEvent. The actor uses this when
minting events on demand.
Sourcepub fn cuda_event(&self) -> &CudaEvent
pub fn cuda_event(&self) -> &CudaEvent
Underlying cudarc handle. Public because some downstream callers
(p2p, pipeline) need to issue cross-stream waits via the
safe stream.wait(&event) shape.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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