Struct tower::retry::RetryLayer [−][src]
pub struct RetryLayer<P> { /* fields omitted */ }
This is supported on crate feature
retry
only.Expand description
Retry requests based on a policy
Implementations
impl<P> RetryLayer<P>
[src]
impl<P> RetryLayer<P>
[src]pub fn new(policy: P) -> Self
[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: Debug> Debug for RetryLayer<P>
[src]Auto Trait Implementations
impl<P> RefUnwindSafe for RetryLayer<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for RetryLayer<P> where
P: Send,
P: Send,
impl<P> Sync for RetryLayer<P> where
P: Sync,
P: Sync,
impl<P> Unpin for RetryLayer<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for RetryLayer<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,