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
sourceimpl<'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.
Auto Trait Implementations
impl<'p, F, O, R> !RefUnwindSafe for QuantifiedResponse<'p, F, O, R>
impl<'p, F, O, R> Send for QuantifiedResponse<'p, F, O, R>where
F: Send,
O: Send,
R: Send,
impl<'p, F, O, R> Sync for QuantifiedResponse<'p, F, O, R>where
F: Sync,
O: Sync,
R: Sync,
impl<'p, F, O, R> Unpin for QuantifiedResponse<'p, F, O, R>where
F: Unpin,
O: Unpin,
R: Unpin,
impl<'p, F, O, R> !UnwindSafe for QuantifiedResponse<'p, F, O, R>
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