pub struct StreamCaptureScope<'scope> { /* private fields */ }Implementations§
Source§impl<'scope> StreamCaptureScope<'scope>
impl<'scope> StreamCaptureScope<'scope>
pub const fn stream(&self) -> &'scope Stream
Sourcepub fn record<O>(&self, operation: O) -> Result<O::Output>where
O: GraphRecordable,
pub fn record<O>(&self, operation: O) -> Result<O::Output>where
O: GraphRecordable,
Records a graph-safe operation into this active stream capture.
Only operations implementing GraphRecordable can be submitted
through this method. Allocation/free and other capture-unsafe CUDA calls
should stay outside this trait unless their replay ownership and address
stability are explicitly modeled.
Trait Implementations§
Auto Trait Implementations§
impl<'scope> !Send for StreamCaptureScope<'scope>
impl<'scope> !Sync for StreamCaptureScope<'scope>
impl<'scope> Freeze for StreamCaptureScope<'scope>
impl<'scope> RefUnwindSafe for StreamCaptureScope<'scope>
impl<'scope> Unpin for StreamCaptureScope<'scope>
impl<'scope> UnsafeUnpin for StreamCaptureScope<'scope>
impl<'scope> UnwindSafe for StreamCaptureScope<'scope>
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