Struct unimock::build::QuantifyResponse
source · [−]pub struct QuantifyResponse<'p, F: MockFn, O> { /* private fields */ }
Expand description
Builder for defining how a call pattern gets verified.
Implementations
sourceimpl<'p, F, O> QuantifyResponse<'p, F, O> where
F: MockFn + 'static,
O: Ordering,
impl<'p, F, O> QuantifyResponse<'p, F, O> where
F: MockFn + 'static,
O: Ordering,
sourcepub fn once(self) -> QuantifiedResponse<'p, F, O, Exact>
pub fn once(self) -> QuantifiedResponse<'p, F, O, Exact>
Expect this call pattern to be called exactly once.
sourcepub fn n_times(self, times: usize) -> QuantifiedResponse<'p, F, O, Exact>
pub fn n_times(self, times: usize) -> QuantifiedResponse<'p, F, O, Exact>
Expect this call pattern to be called exactly the specified number of times.
sourcepub fn at_least_times(
self,
times: usize
) -> QuantifiedResponse<'p, F, O, AtLeast>
pub fn at_least_times(
self,
times: usize
) -> QuantifiedResponse<'p, F, O, AtLeast>
Expect this call pattern to be called at least the specified number of times.
sourcepub fn in_any_order(self) -> Clause where
O: Ordering<Kind = InAnyOrder>,
pub fn in_any_order(self) -> Clause where
O: Ordering<Kind = InAnyOrder>,
Turn the call pattern into a stubbing clause, without any overall call order verification.
Auto Trait Implementations
impl<'p, F, O> RefUnwindSafe for QuantifyResponse<'p, F, O> where
O: RefUnwindSafe,
impl<'p, F, O> Send for QuantifyResponse<'p, F, O> where
O: Send,
impl<'p, F, O> Sync for QuantifyResponse<'p, F, O> where
O: Sync,
impl<'p, F, O> Unpin for QuantifyResponse<'p, F, O> where
O: Unpin,
impl<'p, F, O> !UnwindSafe for QuantifyResponse<'p, F, O>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more