pub struct CudaEvent { /* private fields */ }
Implementations§
Source§impl CudaEvent
impl CudaEvent
pub fn new() -> Result<Self, CudaError>
Sourcepub unsafe fn record(&self, stream: cudaStream_t) -> Result<(), CudaError>
pub unsafe fn record(&self, stream: cudaStream_t) -> Result<(), CudaError>
§Safety
The caller must ensure that stream
is a valid stream.
Sourcepub unsafe fn record_and_wait(
&self,
stream: cudaStream_t,
) -> Result<(), CudaError>
pub unsafe fn record_and_wait( &self, stream: cudaStream_t, ) -> Result<(), CudaError>
§Safety
The caller must ensure that stream
is a valid stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CudaEvent
impl RefUnwindSafe for CudaEvent
impl Unpin for CudaEvent
impl UnwindSafe for CudaEvent
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