enum SchedulerCommand {
Fire,
FireAt(Instant),
Cancel,
Suspend,
Resume,
}
Expand description
A command sent from task handles to schedule objects.
Variants§
Fire
Run the task now.
FireAt(Instant)
Run the task at the provided Instant
.
Cancel
Cancel a pending execution, if there is one.
Suspend
Pause execution without cancelling any running timers. (Those timers will fire after we resume execution.)
Resume
Resume execution. If there is a pending timer, start waiting for it again; otherwise, fire immediately.
Trait Implementations§
Source§impl Clone for SchedulerCommand
impl Clone for SchedulerCommand
Source§fn clone(&self) -> SchedulerCommand
fn clone(&self) -> SchedulerCommand
Returns a copy 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 moreimpl Copy for SchedulerCommand
Auto Trait Implementations§
impl Freeze for SchedulerCommand
impl RefUnwindSafe for SchedulerCommand
impl Send for SchedulerCommand
impl Sync for SchedulerCommand
impl Unpin for SchedulerCommand
impl UnwindSafe for SchedulerCommand
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