#[non_exhaustive]pub struct FetcherOptions { /* private fields */ }Expand description
Options for the Fetcher
Implementations§
Source§impl FetcherOptions
impl FetcherOptions
Sourcepub fn retry_after(self, duration: Duration) -> Self
pub fn retry_after(self, duration: Duration) -> Self
Set the default retry-after duration when a 429 response doesn’t include a Retry-After header.
Sourcepub fn retry_after_with_max(self, default: Duration, max: Duration) -> Self
pub fn retry_after_with_max(self, default: Duration, max: Duration) -> Self
Set the default retry-after duration when a 429 response doesn’t include a Retry-After header and checks the duration against the maximum retry-after.
Trait Implementations§
Source§impl Clone for FetcherOptions
impl Clone for FetcherOptions
Source§fn clone(&self) -> FetcherOptions
fn clone(&self) -> FetcherOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FetcherOptions
impl Debug for FetcherOptions
Auto Trait Implementations§
impl Freeze for FetcherOptions
impl RefUnwindSafe for FetcherOptions
impl Send for FetcherOptions
impl Sync for FetcherOptions
impl Unpin for FetcherOptions
impl UnwindSafe for FetcherOptions
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