pub struct WaitOptions {
pub timeout_ms: u64,
pub poll_interval_ms: u64,
pub wait_until: LoadState,
}Expand description
Options for wait operations
Fields§
§timeout_ms: u64Timeout in milliseconds
poll_interval_ms: u64Polling interval in milliseconds
wait_until: LoadStateState to wait for (for navigation)
Implementations§
Source§impl WaitOptions
impl WaitOptions
Sourcepub const fn with_timeout(self, timeout_ms: u64) -> Self
pub const fn with_timeout(self, timeout_ms: u64) -> Self
Set timeout in milliseconds
Sourcepub const fn with_poll_interval(self, poll_interval_ms: u64) -> Self
pub const fn with_poll_interval(self, poll_interval_ms: u64) -> Self
Set polling interval in milliseconds
Sourcepub const fn with_wait_until(self, state: LoadState) -> Self
pub const fn with_wait_until(self, state: LoadState) -> Self
Set load state to wait for
Sourcepub const fn poll_interval(&self) -> Duration
pub const fn poll_interval(&self) -> Duration
Get poll interval as Duration
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 · 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 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