pub enum TimerControlAction {
None,
Arm {
generation: u64,
deadline_ns: u64,
},
Replace {
generation: u64,
deadline_ns: u64,
},
Clear,
Disarm {
cancelled: bool,
},
}Expand description
Side effect requested from the timer platform boundary.
Variants§
None
No platform change is required.
Arm
Arm a new callback.
Fields
Replace
Clear the existing handle and arm this replacement.
Fields
Clear
Clear the existing scheduled handle.
Disarm
The completed run leaves no scheduled successor.
Trait Implementations§
Source§impl Clone for TimerControlAction
impl Clone for TimerControlAction
Source§fn clone(&self) -> TimerControlAction
fn clone(&self) -> TimerControlAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimerControlAction
Source§impl Debug for TimerControlAction
impl Debug for TimerControlAction
impl Eq for TimerControlAction
Source§impl PartialEq for TimerControlAction
impl PartialEq for TimerControlAction
impl StructuralPartialEq for TimerControlAction
Auto Trait Implementations§
impl Freeze for TimerControlAction
impl RefUnwindSafe for TimerControlAction
impl Send for TimerControlAction
impl Sync for TimerControlAction
impl Unpin for TimerControlAction
impl UnsafeUnpin for TimerControlAction
impl UnwindSafe for TimerControlAction
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