pub struct BackoffSchedule {
pub initial: Number,
pub factor: Number,
pub max: Number,
}Expand description
Exponential backoff schedule (inline object in the baseline).
Fields§
§initial: NumberInitial delay in milliseconds (≥ 0).
factor: NumberMultiplication factor (≥ 1).
max: NumberDelay ceiling in milliseconds (≥ 0).
Trait Implementations§
Source§impl Clone for BackoffSchedule
impl Clone for BackoffSchedule
Source§fn clone(&self) -> BackoffSchedule
fn clone(&self) -> BackoffSchedule
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 moreSource§impl Debug for BackoffSchedule
impl Debug for BackoffSchedule
Source§impl<'de> Deserialize<'de> for BackoffSchedule
impl<'de> Deserialize<'de> for BackoffSchedule
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 JsonSchema for BackoffSchedule
impl JsonSchema for BackoffSchedule
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for BackoffSchedule
impl PartialEq for BackoffSchedule
Source§impl Serialize for BackoffSchedule
impl Serialize for BackoffSchedule
impl StructuralPartialEq for BackoffSchedule
Auto Trait Implementations§
impl Freeze for BackoffSchedule
impl RefUnwindSafe for BackoffSchedule
impl Send for BackoffSchedule
impl Sync for BackoffSchedule
impl Unpin for BackoffSchedule
impl UnsafeUnpin for BackoffSchedule
impl UnwindSafe for BackoffSchedule
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