[][src]Struct kwait::Backoff

pub struct Backoff { /* fields omitted */ }

Backoff holds parameters applied to a Backoff function.

Implementations

impl Backoff[src]

pub fn step(&mut self) -> Duration[src]

step (1) returns an amount of time to sleep determined by the original duration and jitter and (2) mutates the provided Backoff to update its steps and duration.

Auto Trait Implementations

impl RefUnwindSafe for Backoff

impl Send for Backoff

impl Sync for Backoff

impl Unpin for Backoff

impl UnwindSafe for Backoff

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,