Struct unimock::build::QuantifiedResponse
source · pub struct QuantifiedResponse<'p, F: MockFn, O, R> { /* private fields */ }
Expand description
An exactly quantified response, i.e. the number of times it is expected to respond is an exact number.
Implementations§
source§impl<'p, F, O, R> QuantifiedResponse<'p, F, O, R>where
F: MockFn + 'static,
O: Ordering,
R: Repetition,
impl<'p, F, O, R> QuantifiedResponse<'p, F, O, R>where
F: MockFn + 'static,
O: Ordering,
R: Repetition,
sourcepub fn then(self) -> DefineMultipleResponses<'p, F, O>where
R: Repetition<Kind = Exact>,
pub fn then(self) -> DefineMultipleResponses<'p, F, O>where
R: Repetition<Kind = Exact>,
Prepare to set up a new response, which will take effect after the current response has been yielded. In order to make an output sequence, the preceding output must be exactly quantified.