pub struct SparseDispatchCtx<'a> {
pub handle: &'a Mutex<SendSparseHandle>,
pub stream: &'a Arc<CudaStream>,
pub completion: &'a Arc<dyn CompletionStrategy>,
pub workspace: &'a Mutex<Option<CudaSlice<u8>>>,
}Expand description
Per-call context handed to a SparseDispatch::dispatch impl.
Fields§
§handle: &'a Mutex<SendSparseHandle>§stream: &'a Arc<CudaStream>§completion: &'a Arc<dyn CompletionStrategy>§workspace: &'a Mutex<Option<CudaSlice<u8>>>Auto Trait Implementations§
impl<'a> Freeze for SparseDispatchCtx<'a>
impl<'a> !RefUnwindSafe for SparseDispatchCtx<'a>
impl<'a> Send for SparseDispatchCtx<'a>
impl<'a> Sync for SparseDispatchCtx<'a>
impl<'a> Unpin for SparseDispatchCtx<'a>
impl<'a> UnsafeUnpin for SparseDispatchCtx<'a>
impl<'a> !UnwindSafe for SparseDispatchCtx<'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