pub enum CatchupPolicy {
Latest,
All,
Skip,
}Expand description
What a schedule does with the occurrences it missed while no server was firing it (downtime, a long deploy, a stalled ticker).
§Examples
use ironflow_store::entities::CatchupPolicy;
assert_eq!(CatchupPolicy::default(), CatchupPolicy::Latest);
assert_eq!(CatchupPolicy::All.as_ref(), "all");
let parsed: CatchupPolicy = "skip".parse().unwrap();
assert_eq!(parsed, CatchupPolicy::Skip);Variants§
Latest
Run only the most recent missed occurrence.
All
Run every missed occurrence, oldest first, up to
SchedulePolicy::catchup_max.
Skip
Run no late occurrence: only an occurrence fired on time runs.
Trait Implementations§
Source§impl AsRef<str> for CatchupPolicy
impl AsRef<str> for CatchupPolicy
Source§impl Clone for CatchupPolicy
impl Clone for CatchupPolicy
Source§fn clone(&self) -> CatchupPolicy
fn clone(&self) -> CatchupPolicy
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 CatchupPolicy
Source§impl Debug for CatchupPolicy
impl Debug for CatchupPolicy
Source§impl Default for CatchupPolicy
impl Default for CatchupPolicy
Source§fn default() -> CatchupPolicy
fn default() -> CatchupPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatchupPolicy
impl<'de> Deserialize<'de> for CatchupPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CatchupPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CatchupPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CatchupPolicy
impl Display for CatchupPolicy
impl Eq for CatchupPolicy
Source§impl FromStr for CatchupPolicy
impl FromStr for CatchupPolicy
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<CatchupPolicy, <CatchupPolicy as FromStr>::Err>
fn from_str(s: &str) -> Result<CatchupPolicy, <CatchupPolicy as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for CatchupPolicy
impl PartialEq for CatchupPolicy
Source§impl Serialize for CatchupPolicy
impl Serialize for CatchupPolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CatchupPolicy
Source§impl TryFrom<&str> for CatchupPolicy
impl TryFrom<&str> for CatchupPolicy
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<CatchupPolicy, <CatchupPolicy as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<CatchupPolicy, <CatchupPolicy as TryFrom<&str>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CatchupPolicy
impl RefUnwindSafe for CatchupPolicy
impl Send for CatchupPolicy
impl Sync for CatchupPolicy
impl Unpin for CatchupPolicy
impl UnsafeUnpin for CatchupPolicy
impl UnwindSafe for CatchupPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.