pub struct RetryClient<C> { /* private fields */ }Expand description
HTTP client wrapper that adds retry logic
Implementations§
Source§impl<C> RetryClient<C>
impl<C> RetryClient<C>
Sourcepub const fn new(inner: C, policy: RetryPolicy) -> Self
pub const fn new(inner: C, policy: RetryPolicy) -> Self
Create a new retry client wrapping an existing HTTP client
Sourcepub const fn policy(&self) -> &RetryPolicy
pub const fn policy(&self) -> &RetryPolicy
Get a reference to the retry policy
Trait Implementations§
Source§impl<C: Debug> Debug for RetryClient<C>
impl<C: Debug> Debug for RetryClient<C>
Source§impl<C: HttpClient + Send + Sync> HttpClient for RetryClient<C>
impl<C: HttpClient + Send + Sync> HttpClient for RetryClient<C>
Auto Trait Implementations§
impl<C> Freeze for RetryClient<C>where
C: Freeze,
impl<C> RefUnwindSafe for RetryClient<C>where
C: RefUnwindSafe,
impl<C> Send for RetryClient<C>where
C: Send,
impl<C> Sync for RetryClient<C>where
C: Sync,
impl<C> Unpin for RetryClient<C>where
C: Unpin,
impl<C> UnsafeUnpin for RetryClient<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for RetryClient<C>where
C: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more