[−][src]Trait futures_retrying::Retryable
Retryable must be implemented for a task that can be retried any number of times.
All errors wil be reported with report_error
. The default implementation will report
the error with tracing::error!()
.
Associated Types
Loading content...Required methods
Loading content...Provided methods
fn report_error(&self, error: &Self::Error, next_retry: Option<Duration>)
Report the error of the last attempt to complete the task.
Implementors
impl<F, Fut, I, E> Retryable for F where
F: Fn() -> Fut,
Fut: Future<Output = Result<I, E>>,
E: Debug,
[src]
F: Fn() -> Fut,
Fut: Future<Output = Result<I, E>>,
E: Debug,