pub enum MissedTickBehavior {
Burst,
Skip,
Delay,
}Expand description
Strategy for handling missed interval ticks.
When processing takes longer than the interval period, ticks are “missed.” This enum controls how the interval catches up.
Variants§
Burst
Fire missed ticks immediately to catch up (default). Maintains the original schedule timestamps.
Skip
Skip missed ticks and jump to the next future tick aligned with the original start time.
Delay
Reschedule from now — the next tick fires one full period from the current time, discarding the original schedule.
Trait Implementations§
Source§impl Clone for MissedTickBehavior
impl Clone for MissedTickBehavior
Source§fn clone(&self) -> MissedTickBehavior
fn clone(&self) -> MissedTickBehavior
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 moreSource§impl Debug for MissedTickBehavior
impl Debug for MissedTickBehavior
Source§impl PartialEq for MissedTickBehavior
impl PartialEq for MissedTickBehavior
Source§fn eq(&self, other: &MissedTickBehavior) -> bool
fn eq(&self, other: &MissedTickBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MissedTickBehavior
impl Eq for MissedTickBehavior
impl StructuralPartialEq for MissedTickBehavior
Auto Trait Implementations§
impl Freeze for MissedTickBehavior
impl RefUnwindSafe for MissedTickBehavior
impl Send for MissedTickBehavior
impl Sync for MissedTickBehavior
impl Unpin for MissedTickBehavior
impl UnsafeUnpin for MissedTickBehavior
impl UnwindSafe for MissedTickBehavior
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