pub enum DelayFunction {
Constant,
Exponential,
Fibonacci,
}Expand description
Specifies the function that is used to calculate subsequent reschedule delays.
Variants§
Constant
The delay between reschedule attempts stays at the Delay value.
Exponential
The delay between reschedule attempts doubles.
Fibonacci
The delay between reschedule attempts is calculated by adding the two most recent delays applied.
Trait Implementations§
Source§impl Clone for DelayFunction
impl Clone for DelayFunction
Source§fn clone(&self) -> DelayFunction
fn clone(&self) -> DelayFunction
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 DelayFunction
impl Debug for DelayFunction
Source§impl<'de> Deserialize<'de> for DelayFunction
impl<'de> Deserialize<'de> for DelayFunction
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 DelayFunction
impl PartialEq for DelayFunction
Source§impl Serialize for DelayFunction
impl Serialize for DelayFunction
impl Eq for DelayFunction
impl StructuralPartialEq for DelayFunction
Auto Trait Implementations§
impl Freeze for DelayFunction
impl RefUnwindSafe for DelayFunction
impl Send for DelayFunction
impl Sync for DelayFunction
impl Unpin for DelayFunction
impl UnwindSafe for DelayFunction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.