pub struct WorkerHandle {
pub id: usize,
pub cmd: SpscSender<WorkerCmd, 64>,
/* private fields */
}Expand description
Live handle to a running worker thread.
Fields§
§id: usizeWorker index.
cmd: SpscSender<WorkerCmd, 64>Command sender (shutdown).
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WorkerHandle
impl !UnwindSafe for WorkerHandle
impl Freeze for WorkerHandle
impl Send for WorkerHandle
impl Sync for WorkerHandle
impl Unpin for WorkerHandle
impl UnsafeUnpin for WorkerHandle
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