struct Core {
tasks: VecDeque<Notified<Arc<Handle>>>,
tick: u32,
driver: Option<Driver>,
metrics: MetricsBatch,
global_queue_interval: u32,
unhandled_panic: bool,
}
Expand description
Data required for executing the scheduler. The struct is passed around to a function that will perform the scheduling work and acts as a capability token.
Fields§
§tasks: VecDeque<Notified<Arc<Handle>>>
Scheduler run queue
tick: u32
Current tick
driver: Option<Driver>
Runtime driver
The driver is removed before starting to park the thread
metrics: MetricsBatch
Metrics batch
global_queue_interval: u32
How often to check the global queue
unhandled_panic: bool
True if a task panicked without being handled and the runtime is configured to shutdown on unhandled panic.
Implementations§
source§impl Core
impl Core
Auto Trait Implementations§
impl Freeze for Core
impl !RefUnwindSafe for Core
impl Send for Core
impl Sync for Core
impl Unpin for Core
impl !UnwindSafe for Core
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