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
§Safety
This property is inherited from the CUDA API, which is thread-safe.
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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