pub struct ElementQueryWaitConfig { /* private fields */ }Expand description
Wait configuration used by thirtyfour element queries and element waits.
Implementations§
Source§impl ElementQueryWaitConfig
impl ElementQueryWaitConfig
Sourcepub const fn new(timeout: Duration, interval: Duration) -> Self
pub const fn new(timeout: Duration, interval: Duration) -> Self
Create a new element query wait configuration without validation.
Use Self::try_new for values from user input or environment configuration. A zero
interval is accepted here for const construction, but can cause immediate retry loops in the
underlying WebDriver element poller.
Sourcepub fn try_new(
timeout: Duration,
interval: Duration,
) -> Result<Self, ElementQueryWaitConfigError>
pub fn try_new( timeout: Duration, interval: Duration, ) -> Result<Self, ElementQueryWaitConfigError>
Create a new element query wait configuration.
§Errors
Returns ElementQueryWaitConfigError::ZeroInterval if interval is
Duration::ZERO.
Trait Implementations§
Source§impl Clone for ElementQueryWaitConfig
impl Clone for ElementQueryWaitConfig
Source§fn clone(&self) -> ElementQueryWaitConfig
fn clone(&self) -> ElementQueryWaitConfig
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 ElementQueryWaitConfig
impl Debug for ElementQueryWaitConfig
Source§impl Hash for ElementQueryWaitConfig
impl Hash for ElementQueryWaitConfig
Source§impl PartialEq for ElementQueryWaitConfig
impl PartialEq for ElementQueryWaitConfig
Source§fn eq(&self, other: &ElementQueryWaitConfig) -> bool
fn eq(&self, other: &ElementQueryWaitConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ElementQueryWaitConfig
impl Eq for ElementQueryWaitConfig
impl StructuralPartialEq for ElementQueryWaitConfig
Auto Trait Implementations§
impl Freeze for ElementQueryWaitConfig
impl RefUnwindSafe for ElementQueryWaitConfig
impl Send for ElementQueryWaitConfig
impl Sync for ElementQueryWaitConfig
impl Unpin for ElementQueryWaitConfig
impl UnsafeUnpin for ElementQueryWaitConfig
impl UnwindSafe for ElementQueryWaitConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.