pub struct Each<F: MockFn> { /* private fields */ }
Expand description
Builder for defining a series of cascading call patterns on a specific MockFn.
Implementations§
source§impl<F> Each<F>where
F: MockFn + 'static,
impl<F> Each<F>where
F: MockFn + 'static,
sourcepub fn call<'e>(
&'e mut self,
matching_fn: &dyn Fn(&mut Matching<F>)
) -> DefineMultipleResponses<'e, F, InAnyOrder>
pub fn call<'e>(
&'e mut self,
matching_fn: &dyn Fn(&mut Matching<F>)
) -> DefineMultipleResponses<'e, F, InAnyOrder>
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.