struct Shard {
queue: VecDeque<Task>,
sealed: bool,
}Fields§
§queue: VecDeque<Task>§sealed: boolSet (under the shard’s lock) when the shard is drained for shutdown; pushes to a sealed shard are rejected. This is what guarantees that a spawner racing with shutdown cannot leave a task behind: a push either loses (rejected, task is shut down) or wins, in which case the sealer that later drains this shard collects the task.
Auto Trait Implementations§
impl !RefUnwindSafe for Shard
impl !UnwindSafe for Shard
impl Freeze for Shard
impl Send for Shard
impl Sync for Shard
impl Unpin for Shard
impl UnsafeUnpin for Shard
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