pub struct StreamRef<'s> { /* private fields */ }Expand description
Borrowed, opaque CUDA execution stream.
Non-copy and non-constructible. The native handle is only exposed through an explicit unsafe FFI escape; the value must not be retained past the session scope.
Implementations§
Source§impl<'s> StreamRef<'s>
impl<'s> StreamRef<'s>
Sourcepub unsafe fn raw_handle(&self) -> u64
pub unsafe fn raw_handle(&self) -> u64
Extract the native stream handle for an FFI call.
§Safety
The returned handle is valid only for the lifetime 's and only while
the session’s context is current on this thread. It must not be retained
or destroyed by the caller.
Trait Implementations§
Auto Trait Implementations§
impl<'s> !Send for StreamRef<'s>
impl<'s> !Sync for StreamRef<'s>
impl<'s> Freeze for StreamRef<'s>
impl<'s> RefUnwindSafe for StreamRef<'s>
impl<'s> Unpin for StreamRef<'s>
impl<'s> UnsafeUnpin for StreamRef<'s>
impl<'s> UnwindSafe for StreamRef<'s>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more