struct Shared {
local_state: LocalState,
queue: Mutex<Option<VecDeque<Notified<Arc<Shared>>>>>,
waker: AtomicWaker,
}Expand description
LocalSet state shared between threads.
Fields§
§local_state: LocalState§Safety
This field must only be accessed from the thread that owns the
LocalSet (i.e., Thread::current().id() == owner).
queue: Mutex<Option<VecDeque<Notified<Arc<Shared>>>>>Remote run queue sender.
waker: AtomicWakerWake the LocalSet task.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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