[][src]Enum retry_fn::RetryErr

pub enum RetryErr<E> {
    FailedAttempt {
        tries: usize,
        total_delay: Duration,
        err: E,
    },
    IteratorEnded {
        tries: usize,
        total_delay: Duration,
    },
}

Error type for retry

Variants

FailedAttempt

Attempt failed with an error

Fields of FailedAttempt

tries: usize

number of attempts

total_delay: Duration

total delay

err: E

the error

IteratorEnded

Attempt failed by reaching the end of the iterator

Fields of IteratorEnded

tries: usize

number of attempts

total_delay: Duration

total delay

Trait Implementations

impl<E: Clone> Clone for RetryErr<E>[src]

impl<E: Debug> Debug for RetryErr<E>[src]

impl<E> Display for RetryErr<E> where
    E: Display + Debug
[src]

impl<E> Error for RetryErr<E> where
    E: Display + Debug
[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for RetryErr<E> where
    E: RefUnwindSafe
[src]

impl<E> Send for RetryErr<E> where
    E: Send
[src]

impl<E> Sync for RetryErr<E> where
    E: Sync
[src]

impl<E> Unpin for RetryErr<E> where
    E: Unpin
[src]

impl<E> UnwindSafe for RetryErr<E> where
    E: UnwindSafe
[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.