Struct bastion_executor::run_queue::Worker [−][src]
pub struct Worker<T> { /* fields omitted */ }
Expand description
A worker queue.
This is a FIFO or LIFO queue that is owned by a single thread, but other threads may steal tasks from it. Task schedulers typically create a single worker queue per thread.
Implementations
Get the worker’s run queue size
Creates a stealer for this queue.
The returned stealer can be shared among threads and cloned.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Worker<T>
impl<T> UnwindSafe for Worker<T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more