pub struct BorrowedStream { /* private fields */ }Implementations§
Source§impl BorrowedStream
impl BorrowedStream
Sourcepub const unsafe fn from_raw(handle: cudaStream_t, ctx: Arc<Context>) -> Self
pub const unsafe fn from_raw(handle: cudaStream_t, ctx: Arc<Context>) -> Self
Wraps an existing CUDA stream handle without taking ownership.
§Safety
handle must be a valid CUDA stream associated with ctx, and it must
remain valid for every operation using the returned borrowed stream.
pub fn synchronize(&self) -> Result<()>
pub fn context(&self) -> &Context
pub const fn as_raw(&self) -> cudaStream_t
Trait Implementations§
Source§impl Clone for BorrowedStream
impl Clone for BorrowedStream
Source§fn clone(&self) -> BorrowedStream
fn clone(&self) -> BorrowedStream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for BorrowedStream
impl !Sync for BorrowedStream
impl Freeze for BorrowedStream
impl RefUnwindSafe for BorrowedStream
impl Unpin for BorrowedStream
impl UnsafeUnpin for BorrowedStream
impl UnwindSafe for BorrowedStream
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