pub struct WorkerSlot {
pub runner: Box<dyn ModelRunner>,
}Expand description
What the parent hands to its child on construction. The runner
owns the GPU context indirectly (via cudarc::driver::CudaContext,
atomr_accel_cuda::device::DeviceState, or whatever the backend uses);
when the parent decides to rebuild, it constructs a fresh
WorkerSlot and the child cell starts anew.
Fields§
§runner: Box<dyn ModelRunner>Auto Trait Implementations§
impl Freeze for WorkerSlot
impl !RefUnwindSafe for WorkerSlot
impl Send for WorkerSlot
impl Sync for WorkerSlot
impl Unpin for WorkerSlot
impl UnsafeUnpin for WorkerSlot
impl !UnwindSafe for WorkerSlot
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