struct Shared {
inject: Inject<Arc<Handle>>,
owned: OwnedTasks<Arc<Handle>>,
woken: AtomicBool,
config: Config,
scheduler_metrics: SchedulerMetrics,
worker_metrics: WorkerMetrics,
}
Expand description
Scheduler state shared between threads.
Fields§
§inject: Inject<Arc<Handle>>
Remote run queue
owned: OwnedTasks<Arc<Handle>>
Collection of all active tasks spawned onto this executor.
woken: AtomicBool
Indicates whether the blocked on thread was woken.
config: Config
Scheduler configuration options
scheduler_metrics: SchedulerMetrics
Keeps track of various runtime metrics.
worker_metrics: WorkerMetrics
This scheduler only has one worker.
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