pub struct Each<F: MockFn> { /* private fields */ }
Expand description
Builder for defining a series of cascading call patterns on a specific MockFn.
Implementations
sourceimpl<F> Each<F>where
F: MockFn + 'static,
impl<F> Each<F>where
F: MockFn + 'static,
sourcepub fn call<'e, M>(
&'e mut self,
matching: M
) -> DefineMultipleResponses<'e, F, InAnyOrder>where
M: for<'i> Fn(&<F as MockInputs<'i>>::Inputs) -> bool + Send + Sync + 'static,
pub fn call<'e, M>(
&'e mut self,
matching: M
) -> DefineMultipleResponses<'e, F, InAnyOrder>where
M: for<'i> Fn(&<F as MockInputs<'i>>::Inputs) -> bool + Send + Sync + 'static,
Define the next call pattern, given some input matcher.
The new call pattern will be matched after any previously defined call patterns on the same Each instance.
The method returns a DefineMultipleResponses, which is used to define how unimock responds to the matched call.
Auto Trait Implementations
impl<F> !RefUnwindSafe for Each<F>
impl<F> Send for Each<F>where
F: Send,
impl<F> Sync for Each<F>where
F: Sync,
impl<F> Unpin for Each<F>where
F: Unpin,
impl<F> !UnwindSafe for Each<F>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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