pub enum TimerCommand {
Schedule {
timer_id: u64,
deadline: Instant,
waker: Waker,
},
Cancel {
timer_id: u64,
},
Reschedule {
timer_id: u64,
new_deadline: Instant,
},
}Expand description
Commands for timer management.
Variants§
Schedule
Register a timer firing at deadline.
Fields
Cancel
Remove a scheduled timer.
Reschedule
Move a scheduled timer to a new deadline.
Auto Trait Implementations§
impl Freeze for TimerCommand
impl RefUnwindSafe for TimerCommand
impl Send for TimerCommand
impl Sync for TimerCommand
impl Unpin for TimerCommand
impl UnsafeUnpin for TimerCommand
impl UnwindSafe for TimerCommand
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