[−][src]Enum thirtyfour_query::ElementPoller
Parameters used to determine the polling / timeout behaviour.
Variants
No polling, single attempt.
Poll up to the specified timeout, with the specified interval being the minimum time elapsed between the start of each poll attempt. If the previous poll attempt took longer than the interval, the next will start immediately. Once the timeout is reached, a Timeout error will be returned regardless of the actual number of polling attempts completed.
Poll once every interval, up to the maximum number of polling attempts. If the previous poll attempt took longer than the interval, the next will start immediately. However, in the case that the desired element is not found, you will be guaranteed the specified number of polling attempts, regardless of how long it takes.
Poll once every interval, up to the specified timeout, or the specified minimum number of polling attempts, whichever comes last. If the previous poll attempt took longer than the interval, the next will start immediately. If the timeout was reached before the minimum number of polling attempts has been executed, then the query will continue polling until the number of polling attempts equals the specified minimum. If the minimum number of polling attempts is reached prior to the specified timeout, then the polling attempts will continue until the timeout is reached instead.
Trait Implementations
impl Clone for ElementPoller
[src]
pub fn clone(&self) -> ElementPoller
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ElementPoller
[src]
impl<'de> Deserialize<'de> for ElementPoller
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ElementPoller
[src]
Auto Trait Implementations
impl RefUnwindSafe for ElementPoller
[src]
impl Send for ElementPoller
[src]
impl Sync for ElementPoller
[src]
impl Unpin for ElementPoller
[src]
impl UnwindSafe for ElementPoller
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,