Struct tokio_retry::middleware::Middleware [] [src]

pub struct Middleware<T, S> { /* fields omitted */ }

Middleware that adds retries to a service via a retry strategy.

Methods

impl<T: StrategyFactory, S> Middleware<T, S>
[src]

Trait Implementations

impl<T: StrategyFactory, S: Service> Service for Middleware<T, S> where
    S::Request: Clone
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

Process the request and return the response asynchronously.