pub enum PauseState {
Running,
PausedUntil(Option<Instant>),
}Expand description
Whether the scheduler is currently active, paused indefinitely, or
paused until a specific Instant. The Option<Instant> in
PausedUntil is None for indefinite pauses and Some(deadline)
for time-bounded ones.
Variants§
Trait Implementations§
Source§impl Clone for PauseState
impl Clone for PauseState
Source§fn clone(&self) -> PauseState
fn clone(&self) -> PauseState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PauseState
impl RefUnwindSafe for PauseState
impl Send for PauseState
impl Sync for PauseState
impl Unpin for PauseState
impl UnsafeUnpin for PauseState
impl UnwindSafe for PauseState
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