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

pub struct RetryLayer<P> { /* fields omitted */ }

Retry requests based on a policy

Methods

impl<P> RetryLayer<P>[src]

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

Create a new RetryLayer from a retry policy

Trait Implementations

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

type Service = Retry<P, S>

The wrapped service

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> From<T> 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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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