Struct tower::retry::RetryLayer[][src]

pub struct RetryLayer<P> { /* fields omitted */ }
This is supported on crate feature retry only.

Retry requests based on a policy

Implementations

impl<P> RetryLayer<P>[src]

pub fn new(policy: P) -> Self[src]

Create a new RetryLayer from a retry policy

Trait Implementations

impl<P: Debug> Debug for RetryLayer<P>[src]

impl<P, S> Layer<S> for RetryLayer<P> where
    P: Clone
[src]

type Service = Retry<P, S>

The wrapped service

Auto Trait Implementations

impl<P> RefUnwindSafe for RetryLayer<P> where
    P: RefUnwindSafe

impl<P> Send for RetryLayer<P> where
    P: Send

impl<P> Sync for RetryLayer<P> where
    P: Sync

impl<P> Unpin for RetryLayer<P> where
    P: Unpin

impl<P> UnwindSafe for RetryLayer<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,