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) -> Self
impl<P: Debug> Debug for RetryLayer<P>
fn fmt(&self, f: &mut Formatter<'_>) -> Result