Trait sod::Retryable

source ·
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.

Required Methods§

source

fn parse_retry(&self, err: E) -> Result<I, RetryError<E>>

Implementors§