[][src]Enum httptest_server::Times

pub enum Times {
    AnyNumber,
    AtLeast(usize),
    AtMost(usize),
    Between(RangeInclusive<usize>),
    Exactly(usize),
}

How many requests should an expectation receive.

Variants

AnyNumber

Allow any number of requests.

AtLeast(usize)

Require that at least this many requests are received.

AtMost(usize)

Require that no more than this many requests are received.

Require that the number of requests received is within this range.

Exactly(usize)

Require that exactly this many requests are received.

Trait Implementations

impl Clone for Times[src]

impl Debug for Times[src]

Auto Trait Implementations

impl RefUnwindSafe for Times

impl Send for Times

impl Sync for Times

impl Unpin for Times

impl UnwindSafe for Times

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> From<T> 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 = !

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.