pub struct CudaStream { /* private fields */ }
Implementations§
Source§impl CudaStream
impl CudaStream
Sourcepub fn as_raw(&self) -> cudaStream_t
pub fn as_raw(&self) -> cudaStream_t
Get the raw CUDA stream handle.
Sourcepub fn synchronize(&self) -> Result<(), CudaError>
pub fn synchronize(&self) -> Result<(), CudaError>
Synchronize this stream.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CudaStream
impl RefUnwindSafe for CudaStream
impl Unpin for CudaStream
impl UnwindSafe for CudaStream
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