Struct RetryLayer

struct RetryLayer<P> { ... }

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.

impl<P> Freeze for RetryLayer<P>

impl<P> RefUnwindSafe for RetryLayer<P>

impl<P> Send for RetryLayer<P>

impl<P> Sync for RetryLayer<P>

impl<P> Unpin for RetryLayer<P>

impl<P> UnsafeUnpin for RetryLayer<P>

impl<P> UnwindSafe for RetryLayer<P>

impl<P, S> Layer for RetryLayer<P>

fn layer(self: &Self, service: S) -> <Self as >::Service

impl<P: $crate::clone::Clone> Clone for RetryLayer<P>

fn clone(self: &Self) -> RetryLayer<P>

impl<P: $crate::fmt::Debug> Debug for RetryLayer<P>

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

impl<T> Any for RetryLayer<P>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for RetryLayer<P>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for RetryLayer<P>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for RetryLayer<P>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for RetryLayer<P>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for RetryLayer<P>

impl<T> ToOwned for RetryLayer<P>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> WithSubscriber for RetryLayer<P>

impl<T, U> Into for RetryLayer<P>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for RetryLayer<P>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for RetryLayer<P>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>