pub struct DelayedTaskSchedulerState {
pub lifecycle: ExecutorServiceLifecycle,
pub tasks: BinaryHeap<ScheduledTask>,
pub next_sequence: usize,
pub terminated: bool,
}Expand description
Mutable scheduler state protected by the scheduler mutex.
Fields§
§lifecycle: ExecutorServiceLifecycleCurrent lifecycle state.
tasks: BinaryHeap<ScheduledTask>Deadline-ordered task heap.
next_sequence: usizeSequence used to keep stable order for identical deadlines.
terminated: boolWhether the scheduler thread has exited.
Auto Trait Implementations§
impl Freeze for DelayedTaskSchedulerState
impl !RefUnwindSafe for DelayedTaskSchedulerState
impl Send for DelayedTaskSchedulerState
impl !Sync for DelayedTaskSchedulerState
impl Unpin for DelayedTaskSchedulerState
impl UnsafeUnpin for DelayedTaskSchedulerState
impl !UnwindSafe for DelayedTaskSchedulerState
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