pub trait Retryable<I, E> {
// Required method
fn parse_retry(&self, err: E) -> Result<I, RetryError<E>>;
}
Expand description
To be implemented by non-blocking services which may return the moved input in a resulting Err
to be retried.
This allows a RetryService
to wrap a Service
.