pub struct RawStream {
pub handle: cudaStream_t,
pub context: Arc<Context>,
pub ownership: RawStreamOwnership,
}Expand description
Raw ownership of a CUDA stream, its context, and any external owner.
Destroy owned handles explicitly, keep borrowed tokens alive through every use, or re-adopt the value with Stream::from_raw.
Fields§
§handle: cudaStream_tNative stream handle whose release responsibility is described by ownership.
context: Arc<Context>Actual CUDA context retained for native stream operations.
ownership: RawStreamOwnershipNative destruction responsibility or external owner token.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RawStream
impl !Send for RawStream
impl !Sync for RawStream
impl !UnwindSafe for RawStream
impl Forget for RawStream
impl Freeze for RawStream
impl Move for RawStream
impl Unpin for RawStream
impl UnsafeUnpin for RawStream
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