pub struct PollOptions {
pub interval: Duration,
pub timeout: Duration,
}Expand description
Options for the high-level wait_for_* polling helpers.
Fields§
§interval: DurationHow long to sleep between status polls. Default: 2 s.
timeout: DurationMaximum total time to wait before returning WaitError::Timeout. Default: 300 s.
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
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