Struct RetryLayer
pub struct RetryLayer<P> { /* private fields */ }
Retry requests based on a policy
Implementations
impl<P> RetryLayer<P>
const fn new(policy: P) -> SelfCreates a new
RetryLayerfrom 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) -> RetryLayer<P>
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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RetryLayer<P>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RetryLayer<P>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for RetryLayer<P>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for RetryLayer<P>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for RetryLayer<P>
impl<T> ToOwned for RetryLayer<P>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> WithSubscriber for RetryLayer<P>
impl<T, U> Into<U> for RetryLayer<P>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RetryLayer<P>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for RetryLayer<P>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>