pub struct WaitOptions {
pub timeout: Option<Duration>,
pub max_interval: Duration,
pub initial_interval: Duration,
pub on_progress: Option<ProgressCallback>,
}Expand description
Options for Client::wait_for_task.
Fields§
§timeout: Option<Duration>Overall timeout. None → wait forever.
max_interval: DurationCap on the polling interval.
initial_interval: DurationInitial polling interval when no ETA is available.
on_progress: Option<ProgressCallback>Called after every poll.
Trait Implementations§
Source§impl Debug for WaitOptions
impl Debug for WaitOptions
Auto Trait Implementations§
impl Freeze for WaitOptions
impl !RefUnwindSafe for WaitOptions
impl Send for WaitOptions
impl Sync for WaitOptions
impl Unpin for WaitOptions
impl UnsafeUnpin for WaitOptions
impl !UnwindSafe for WaitOptions
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