pub struct PollConfig {
pub timeout: Duration,
pub interval: Duration,
}Expand description
How long to wait, and how often to poll, when awaiting a result.
Defaults to a 120-second timeout polled every second. Use
PollConfig::default for the common case, or construct one directly to
tune it.
Fields§
§timeout: DurationMaximum total time to wait for the result to become ready.
interval: DurationDelay between successive polls.
Trait Implementations§
Source§impl Clone for PollConfig
impl Clone for PollConfig
Source§fn clone(&self) -> PollConfig
fn clone(&self) -> PollConfig
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 moreimpl Copy for PollConfig
Source§impl Debug for PollConfig
impl Debug for PollConfig
Auto Trait Implementations§
impl Freeze for PollConfig
impl RefUnwindSafe for PollConfig
impl Send for PollConfig
impl Sync for PollConfig
impl Unpin for PollConfig
impl UnsafeUnpin for PollConfig
impl UnwindSafe for PollConfig
Blanket Implementations§
impl<T> Allocation for T
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