pub enum OverlapPolicy {
Allow,
Skip,
}Expand description
What a schedule does when an occurrence comes while one of its runs is still active.
§Examples
use ironflow_store::entities::OverlapPolicy;
assert_eq!(OverlapPolicy::default(), OverlapPolicy::Allow);
assert_eq!(OverlapPolicy::Skip.as_ref(), "skip");
let parsed: OverlapPolicy = "allow".parse().unwrap();
assert_eq!(parsed, OverlapPolicy::Allow);Variants§
Allow
Create the run anyway: runs of the schedule may run side by side.
Skip
Skip the occurrence while a run of the schedule is active. Enforced
with the concurrency key Schedule::concurrency_key.
Trait Implementations§
Source§impl AsRef<str> for OverlapPolicy
impl AsRef<str> for OverlapPolicy
Source§impl Clone for OverlapPolicy
impl Clone for OverlapPolicy
Source§fn clone(&self) -> OverlapPolicy
fn clone(&self) -> OverlapPolicy
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 OverlapPolicy
Source§impl Debug for OverlapPolicy
impl Debug for OverlapPolicy
Source§impl Default for OverlapPolicy
impl Default for OverlapPolicy
Source§fn default() -> OverlapPolicy
fn default() -> OverlapPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OverlapPolicy
impl<'de> Deserialize<'de> for OverlapPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OverlapPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OverlapPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for OverlapPolicy
impl Display for OverlapPolicy
impl Eq for OverlapPolicy
Source§impl FromStr for OverlapPolicy
impl FromStr for OverlapPolicy
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<OverlapPolicy, <OverlapPolicy as FromStr>::Err>
fn from_str(s: &str) -> Result<OverlapPolicy, <OverlapPolicy as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for OverlapPolicy
impl PartialEq for OverlapPolicy
Source§impl Serialize for OverlapPolicy
impl Serialize for OverlapPolicy
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 OverlapPolicy
Source§impl TryFrom<&str> for OverlapPolicy
impl TryFrom<&str> for OverlapPolicy
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<OverlapPolicy, <OverlapPolicy as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<OverlapPolicy, <OverlapPolicy as TryFrom<&str>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OverlapPolicy
impl RefUnwindSafe for OverlapPolicy
impl Send for OverlapPolicy
impl Sync for OverlapPolicy
impl Unpin for OverlapPolicy
impl UnsafeUnpin for OverlapPolicy
impl UnwindSafe for OverlapPolicy
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.