[][src]Enum thirtyfour_query::ElementPoller

pub enum ElementPoller {
    NoWait,
    TimeoutWithInterval(DurationDuration),
    NumTriesWithInterval(u32Duration),
    TimeoutWithIntervalAndMinTries(DurationDurationu32),
}

Parameters used to determine the polling / timeout behaviour.

Variants

NoWait

No polling, single attempt.

TimeoutWithInterval(DurationDuration)

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.

NumTriesWithInterval(u32Duration)

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.

TimeoutWithIntervalAndMinTries(DurationDurationu32)

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]

impl Debug for ElementPoller[src]

impl<'de> Deserialize<'de> for ElementPoller[src]

impl Serialize for ElementPoller[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.