pub struct WaitOptions {
pub poll_interval: Duration,
pub timeout: Duration,
}Expand description
Options for SmartBrowse::wait_for_run
and SmartBrowse::run_and_wait.
The poll interval grows ×1.5 per poll, capped at 10s. The default timeout of 900s matches the service’s 15-minute hard run cap.
Fields§
§poll_interval: DurationInitial delay between polls (default 2s).
timeout: DurationOverall deadline before giving up (default 900s).
Implementations§
Trait Implementations§
Source§impl Clone for WaitOptions
impl Clone for WaitOptions
Source§fn clone(&self) -> WaitOptions
fn clone(&self) -> WaitOptions
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 WaitOptions
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