pub struct BackoffSpec {
pub base_secs: u32,
pub max_secs: u32,
}Expand description
Exponential backoff between a job’s attempts.
Fields§
§base_secs: u32§max_secs: u32Implementations§
Source§impl BackoffSpec
impl BackoffSpec
pub const DEFAULT_BASE_SECS: u32 = 30
pub const DEFAULT_MAX_SECS: u32 = 3600
Sourcepub const SECS: RangeInclusive<u32>
pub const SECS: RangeInclusive<u32>
The range both delays must fall in.
Trait Implementations§
Source§impl Clone for BackoffSpec
impl Clone for BackoffSpec
impl Copy for BackoffSpec
Source§impl Debug for BackoffSpec
impl Debug for BackoffSpec
Source§impl Default for BackoffSpec
impl Default for BackoffSpec
Source§impl<'de> Deserialize<'de> for BackoffSpec
impl<'de> Deserialize<'de> for BackoffSpec
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
impl Eq for BackoffSpec
Source§impl Hash for BackoffSpec
impl Hash for BackoffSpec
Source§impl PartialEq for BackoffSpec
impl PartialEq for BackoffSpec
Source§impl Serialize for BackoffSpec
impl Serialize for BackoffSpec
impl StructuralPartialEq for BackoffSpec
Auto Trait Implementations§
impl Freeze for BackoffSpec
impl RefUnwindSafe for BackoffSpec
impl Send for BackoffSpec
impl Sync for BackoffSpec
impl Unpin for BackoffSpec
impl UnsafeUnpin for BackoffSpec
impl UnwindSafe for BackoffSpec
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