pub enum MissedRunPolicy {
RunOnce,
Skip,
RunAll,
}Expand description
How the scheduler should behave when it discovers a schedule that was due to fire while the host was down, restarting, or otherwise not ticking.
This is distinct from “a previous run of this schedule is still
executing” — in that case the scheduler always skips (see
is_due in bext-core::scheduler).
Variants§
RunOnce
Run once to catch up, then resume normal cadence. Sensible default for idempotent jobs like cache warming or GC sweeps.
Skip
Skip missed runs entirely and wait for the next scheduled tick. Use for jobs where a delayed run is worse than no run (e.g. time-sensitive notifications).
RunAll
Run every missed occurrence back to back. Use sparingly — only makes sense for accounting-style jobs that must not drop any tick.
Trait Implementations§
Source§impl Clone for MissedRunPolicy
impl Clone for MissedRunPolicy
Source§fn clone(&self) -> MissedRunPolicy
fn clone(&self) -> MissedRunPolicy
Returns a duplicate 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 moreSource§impl Debug for MissedRunPolicy
impl Debug for MissedRunPolicy
Source§impl Default for MissedRunPolicy
impl Default for MissedRunPolicy
Source§impl<'de> Deserialize<'de> for MissedRunPolicy
impl<'de> Deserialize<'de> for MissedRunPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MissedRunPolicy
impl PartialEq for MissedRunPolicy
Source§impl Serialize for MissedRunPolicy
impl Serialize for MissedRunPolicy
impl Copy for MissedRunPolicy
impl Eq for MissedRunPolicy
impl StructuralPartialEq for MissedRunPolicy
Auto Trait Implementations§
impl Freeze for MissedRunPolicy
impl RefUnwindSafe for MissedRunPolicy
impl Send for MissedRunPolicy
impl Sync for MissedRunPolicy
impl Unpin for MissedRunPolicy
impl UnsafeUnpin for MissedRunPolicy
impl UnwindSafe for MissedRunPolicy
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