pub enum CatchUp {
Always,
Never,
Within(Duration),
}Expand description
How long after a missed slot it is still worth running.
Both extremes are legitimate and neither is a safe default for the other: a nightly rumination wants to catch up whenever the machine comes back, and a 07:00 briefing delivered at 23:00 is noise. One knob, three behaviours.
Variants§
Always
Run the missed slot whenever it is noticed. systemd’s Persistent=true.
Never
Only run a slot that is still fresh. A missed one is recorded as skipped and the schedule moves on.
Within(Duration)
Run a missed slot if it is younger than this.
Trait Implementations§
impl Copy for CatchUp
Source§impl<'de> Deserialize<'de> for CatchUp
impl<'de> Deserialize<'de> for CatchUp
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CatchUp
Auto Trait Implementations§
impl Freeze for CatchUp
impl RefUnwindSafe for CatchUp
impl Send for CatchUp
impl Sync for CatchUp
impl Unpin for CatchUp
impl UnsafeUnpin for CatchUp
impl UnwindSafe for CatchUp
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