pub struct NvrtcDispatchCtx<'a> {
pub stream: &'a Arc<CudaStream>,
pub completion: &'a Arc<dyn CompletionStrategy>,
pub state: &'a Arc<DeviceState>,
}Expand description
Per-launch context bundle for NvrtcLaunchDispatch::dispatch.
Pulled by reference from the NvrtcActor Real { ... } variant.
Trait-object implementations consume this when actually wiring up
the cudarc launch_builder().arg(..) chain — Phase 0.3’s NVRTC
migration uses the per-arg DevSliceArg / ScalarArg traits
rather than a request-level dispatcher, so the only reason this
type exists today is API symmetry with the other actors below.
Fields§
§stream: &'a Arc<CudaStream>§completion: &'a Arc<dyn CompletionStrategy>§state: &'a Arc<DeviceState>Auto Trait Implementations§
impl<'a> Freeze for NvrtcDispatchCtx<'a>
impl<'a> !RefUnwindSafe for NvrtcDispatchCtx<'a>
impl<'a> Send for NvrtcDispatchCtx<'a>
impl<'a> Sync for NvrtcDispatchCtx<'a>
impl<'a> Unpin for NvrtcDispatchCtx<'a>
impl<'a> UnsafeUnpin for NvrtcDispatchCtx<'a>
impl<'a> !UnwindSafe for NvrtcDispatchCtx<'a>
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