[][src]Enum restartables::Failure

pub enum Failure<E> {
    Timeout,
    Err {
        error: E,
        restarts: usize,
    },
}

Different ways a Restartable can fail

Variants

Timeout

Returned if the inner future never resolved before the timeout

Err

Returned if the inner future fails the test and then times out. Returns the last error from the test, and how many times the future was restarted.

Fields of Err

error: E

The failure value returne by the test

restarts: usize

How many times the future was restarted before the timeout expired

Trait Implementations

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

Auto Trait Implementations

impl<E> RefUnwindSafe for Failure<E> where
    E: RefUnwindSafe

impl<E> Send for Failure<E> where
    E: Send

impl<E> Sync for Failure<E> where
    E: Sync

impl<E> Unpin for Failure<E> where
    E: Unpin

impl<E> UnwindSafe for Failure<E> where
    E: UnwindSafe

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.