Struct RetryLayer

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

Retry requests based on a policy

Implementations

impl<P> RetryLayer<P>

const fn new(policy: P) -> Self

Creates a new RetryLayer from a retry policy.

Trait Implementations

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

type Service = Retry<P, S>;
fn layer(&self, service: S) -> Self::Service

impl<P: Clone> Clone for RetryLayer<P>

fn clone(&self) -> Self

impl<P: Debug> Debug for RetryLayer<P>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<P> Freeze for RetryLayer<P> where P: Freeze,

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> UnsafeUnpin for RetryLayer<P> where P: UnsafeUnpin,

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

Blanket Implementations

impl<T> Any for RetryLayer<P> where T: 'static + ?Sized,

impl<T> Borrow<T> for RetryLayer<P> where T: ?Sized,

impl<T> BorrowMut<T> for RetryLayer<P> where T: ?Sized,

impl<T> CloneToUninit for RetryLayer<P> where T: Clone,

impl<T> From<T> for RetryLayer<P>

impl<T> Instrument for RetryLayer<P>

impl<T> ToOwned for RetryLayer<P> where T: Clone,

impl<T> WithSubscriber for RetryLayer<P>

impl<T, U> Into<U> for RetryLayer<P> where U: From<T>,

impl<T, U> TryFrom<U> for RetryLayer<P> where U: Into<T>,

impl<T, U> TryInto<U> for RetryLayer<P> where U: TryFrom<T>,