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.
pub fn record_on_this(&self) -> Result<(), CudaError>
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.
pub fn status(&self) -> CudaEventStatus
pub fn completed(&self) -> bool
Trait Implementations§
impl Send for CudaEvent
impl Sync for CudaEvent
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