pub struct RetryingFetcher<F> { /* private fields */ }Expand description
Fetcher wrapper that retries transient failures without sleeping.
Implementations§
Source§impl<F> RetryingFetcher<F>
impl<F> RetryingFetcher<F>
Sourcepub fn with_policy(inner: F, policy: RetryPolicy) -> Self
pub fn with_policy(inner: F, policy: RetryPolicy) -> Self
Wraps a fetcher with an explicit retry policy.
Sourcepub fn policy(&self) -> &RetryPolicy
pub fn policy(&self) -> &RetryPolicy
Returns the configured retry policy.
Trait Implementations§
Source§impl<F: Clone> Clone for RetryingFetcher<F>
impl<F: Clone> Clone for RetryingFetcher<F>
Source§fn clone(&self) -> RetryingFetcher<F>
fn clone(&self) -> RetryingFetcher<F>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<F: Debug> Debug for RetryingFetcher<F>
impl<F: Debug> Debug for RetryingFetcher<F>
Source§impl<F: Fetcher> Fetcher for RetryingFetcher<F>
impl<F: Fetcher> Fetcher for RetryingFetcher<F>
Source§impl<F: FormSubmitter> FormSubmitter for RetryingFetcher<F>
impl<F: FormSubmitter> FormSubmitter for RetryingFetcher<F>
Source§fn submit_form(
&self,
submission: &FormSubmission,
) -> Result<Response, FetchError>
fn submit_form( &self, submission: &FormSubmission, ) -> Result<Response, FetchError>
Submits a resolved semantic form request.
Auto Trait Implementations§
impl<F> Freeze for RetryingFetcher<F>where
F: Freeze,
impl<F> RefUnwindSafe for RetryingFetcher<F>where
F: RefUnwindSafe,
impl<F> Send for RetryingFetcher<F>where
F: Send,
impl<F> Sync for RetryingFetcher<F>where
F: Sync,
impl<F> Unpin for RetryingFetcher<F>where
F: Unpin,
impl<F> UnsafeUnpin for RetryingFetcher<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for RetryingFetcher<F>where
F: 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