pub struct TimerSpec {
pub first_delay: Duration,
pub interval: Option<Duration>,
pub coalesce: bool,
}Expand description
Timing policy for a one-shot or repeating timer.
Fields§
§first_delay: DurationDelay from start until the first deadline.
interval: Option<Duration>None makes a one-shot timer; a non-zero duration repeats it.
coalesce: boolCoalesce missed intervals into one event; missed counts additional
deadlines skipped beyond the notification delivered.
Implementations§
Trait Implementations§
impl Copy for TimerSpec
impl Eq for TimerSpec
impl StructuralPartialEq for TimerSpec
Auto Trait Implementations§
impl Forget for TimerSpec
impl Freeze for TimerSpec
impl Move for TimerSpec
impl RefUnwindSafe for TimerSpec
impl Send for TimerSpec
impl Sync for TimerSpec
impl Unpin for TimerSpec
impl UnsafeUnpin for TimerSpec
impl UnwindSafe for TimerSpec
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