Struct retry_future::error::RetryError
source · pub struct RetryError<E> {
pub errors: Vec<RetryPolicy<E>>,
}
Expand description
Error returned from RetryFuture, i.e.
when we await RetryFuture, the returned type is Result<T, RetryError<E>>
This type accumulates all errors that happen inside inner future.
This means that after a future fails to resolve to Ok(_), an error is pushed to errors
Vec
Fields§
§errors: Vec<RetryPolicy<E>>
Implementations§
source§impl<E> RetryError<E>
impl<E> RetryError<E>
sourcepub fn last_error(&self) -> Option<&RetryPolicy<E>>
pub fn last_error(&self) -> Option<&RetryPolicy<E>>
Returns the last error encountered
Trait Implementations§
source§impl<E: Debug> Debug for RetryError<E>
impl<E: Debug> Debug for RetryError<E>
source§impl<E: Debug> Display for RetryError<E>
impl<E: Debug> Display for RetryError<E>
source§impl<E: Debug> Error for RetryError<E>
impl<E: Debug> Error for RetryError<E>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()