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>
impl<'p, F, O, R> QuantifiedResponse<'p, F, O, R>
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.
Trait Implementations§
impl<'p, F, O, R> Clause for QuantifiedResponse<'p, F, O, R>
Auto Trait Implementations§
impl<'p, F, O, R> Freeze for QuantifiedResponse<'p, F, O, R>
impl<'p, F, O, R> !RefUnwindSafe for QuantifiedResponse<'p, F, O, R>
impl<'p, F, O, R> Send for QuantifiedResponse<'p, F, O, R>
impl<'p, F, O, R> Sync for QuantifiedResponse<'p, F, O, R>
impl<'p, F, O, R> Unpin for QuantifiedResponse<'p, F, O, R>
impl<'p, F, O, R> !UnwindSafe for QuantifiedResponse<'p, F, O, R>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more