pub(super) struct Worker {
handle: Arc<Handle>,
index: usize,
core: AtomicCell<Core>,
}
Expand description
A scheduler worker
Fields§
§handle: Arc<Handle>
Reference to scheduler’s handle
index: usize
Index holding this worker’s remote state
core: AtomicCell<Core>
Used to hand-off a worker’s core to another thread.
Implementations§
Auto Trait Implementations§
impl !Freeze for Worker
impl !RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl !UnwindSafe for Worker
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