pub enum MissedTasksPolicy {
Burst,
Skip,
}
Expand description
The policy that is used to determine the execution target time of newly spawned tasks when the schedule is behind.
Variants§
Burst
Queue all missed tasks.
Skip
Skip all missed tasks and set the next task at a multiple of the interval.
Trait Implementations§
Source§impl Clone for MissedTasksPolicy
impl Clone for MissedTasksPolicy
Source§fn clone(&self) -> MissedTasksPolicy
fn clone(&self) -> MissedTasksPolicy
Returns a copy 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 MissedTasksPolicy
impl Debug for MissedTasksPolicy
Source§impl Default for MissedTasksPolicy
impl Default for MissedTasksPolicy
Source§fn default() -> MissedTasksPolicy
fn default() -> MissedTasksPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MissedTasksPolicy
impl<'de> Deserialize<'de> for MissedTasksPolicy
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 Serialize for MissedTasksPolicy
impl Serialize for MissedTasksPolicy
impl Copy for MissedTasksPolicy
Auto Trait Implementations§
impl Freeze for MissedTasksPolicy
impl RefUnwindSafe for MissedTasksPolicy
impl Send for MissedTasksPolicy
impl Sync for MissedTasksPolicy
impl Unpin for MissedTasksPolicy
impl UnwindSafe for MissedTasksPolicy
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