Skip to main content

RetryResult

Type Alias RetryResult 

Source
pub type RetryResult<T, E> = Result<T, RetryError<E>>;
Expand description

Result alias returned by retry executor execution.

The success type T is chosen by each operation. The error type E remains the caller’s original application error and is wrapped by RetryError only when retry execution terminates unsuccessfully.

Aliased Type§

pub enum RetryResult<T, E> {
    Ok(T),
    Err(RetryError<E>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(RetryError<E>)

Contains the error value