Struct async_cuda_core::ffi::stream::Stream
source · pub struct Stream { /* private fields */ }
Expand description
Synchronous implementation of crate::Stream
.
Refer to crate::Stream
for documentation.
Implementations§
source§impl Stream
impl Stream
pub fn null() -> Self
pub fn new() -> Result<Self, Error>
pub fn synchronize(&self) -> Result<(), Error>
pub fn add_callback(&self, f: impl FnOnce() + Send) -> Result<(), Error>
sourcepub fn as_internal(&self) -> &DevicePtr
pub fn as_internal(&self) -> &DevicePtr
Get readonly reference to internal DevicePtr
.
sourcepub fn as_mut_internal(&mut self) -> &mut DevicePtr
pub fn as_mut_internal(&mut self) -> &mut DevicePtr
Get readonly reference to internal DevicePtr
.
Trait Implementations§
impl Send for Stream
Safety
This property is inherited from the CUDA API, which is thread-safe.
impl Sync for Stream
Auto Trait Implementations§
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