Struct swimos_future::ExponentialStrategy
source · pub struct ExponentialStrategy {
pub max_interval: Duration,
pub max_backoff: Quantity<Duration>,
/* private fields */
}Expand description
Truncated exponential retry strategy parameters.
Fields§
§max_interval: DurationThe maximum interval between a retry, generated intervals will be truncated to this duration if they exceed it.
max_backoff: Quantity<Duration>The maximum backoff time that the strategy will run for. Typically 32 or 64 seconds.
Trait Implementations§
source§impl Clone for ExponentialStrategy
impl Clone for ExponentialStrategy
source§fn clone(&self) -> ExponentialStrategy
fn clone(&self) -> ExponentialStrategy
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 ExponentialStrategy
impl Debug for ExponentialStrategy
source§impl Default for ExponentialStrategy
impl Default for ExponentialStrategy
source§impl PartialEq for ExponentialStrategy
impl PartialEq for ExponentialStrategy
source§fn eq(&self, other: &ExponentialStrategy) -> bool
fn eq(&self, other: &ExponentialStrategy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ExponentialStrategy
impl Eq for ExponentialStrategy
impl StructuralPartialEq for ExponentialStrategy
Auto Trait Implementations§
impl Freeze for ExponentialStrategy
impl RefUnwindSafe for ExponentialStrategy
impl Send for ExponentialStrategy
impl Sync for ExponentialStrategy
impl Unpin for ExponentialStrategy
impl UnwindSafe for ExponentialStrategy
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more