pub enum Times {
AnyNumber,
AtLeast(usize),
AtMost(usize),
Between(RangeInclusive<usize>),
Exactly(usize),
}Expand description
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.
Between(RangeInclusive<usize>)
Require that the number of requests received is within this range.
Exactly(usize)
Require that exactly this many requests are received.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Times
impl RefUnwindSafe for Times
impl Send for Times
impl Sync for Times
impl Unpin for Times
impl UnwindSafe for Times
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