pub struct BackoffPlan {
pub type: TypeTrue,
pub max_retries: f64,
pub base_delay_seconds: f64,
}
Fields§
§type: TypeTrue
This is the type of backoff plan to use. Defaults to fixed. @default fixed
max_retries: f64
This is the maximum number of retries to attempt if the request fails. Defaults to 0 (no retries). @default 0
base_delay_seconds: f64
This is the base delay in seconds. For linear backoff, this is the delay between each retry. For exponential backoff, this is the initial delay.
Implementations§
Source§impl BackoffPlan
impl BackoffPlan
Trait Implementations§
Source§impl Clone for BackoffPlan
impl Clone for BackoffPlan
Source§fn clone(&self) -> BackoffPlan
fn clone(&self) -> BackoffPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BackoffPlan
impl Debug for BackoffPlan
Source§impl Default for BackoffPlan
impl Default for BackoffPlan
Source§fn default() -> BackoffPlan
fn default() -> BackoffPlan
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackoffPlan
impl<'de> Deserialize<'de> for BackoffPlan
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 BackoffPlan
impl PartialEq for BackoffPlan
Source§impl Serialize for BackoffPlan
impl Serialize for BackoffPlan
impl StructuralPartialEq for BackoffPlan
Auto Trait Implementations§
impl Freeze for BackoffPlan
impl RefUnwindSafe for BackoffPlan
impl Send for BackoffPlan
impl Sync for BackoffPlan
impl Unpin for BackoffPlan
impl UnwindSafe for BackoffPlan
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