pub struct PollOptions {
pub max_wait: Duration,
pub initial_delay: Duration,
pub max_delay: Duration,
}Expand description
Exponential-backoff settings for polling Internet Archive state changes.
Fields§
§max_wait: DurationMaximum total time spent polling.
initial_delay: DurationFirst delay between attempts.
max_delay: DurationMaximum delay between attempts.
Trait Implementations§
Source§impl Clone for PollOptions
impl Clone for PollOptions
Source§fn clone(&self) -> PollOptions
fn clone(&self) -> PollOptions
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 Debug for PollOptions
impl Debug for PollOptions
Source§impl Default for PollOptions
impl Default for PollOptions
Source§impl PartialEq for PollOptions
impl PartialEq for PollOptions
Source§fn eq(&self, other: &PollOptions) -> bool
fn eq(&self, other: &PollOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PollOptions
impl StructuralPartialEq for PollOptions
Auto Trait Implementations§
impl Freeze for PollOptions
impl RefUnwindSafe for PollOptions
impl Send for PollOptions
impl Sync for PollOptions
impl Unpin for PollOptions
impl UnsafeUnpin for PollOptions
impl UnwindSafe for PollOptions
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