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, O: Ordering, R: Repetition,

source

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§

source§

impl<'p, F, O, R> Clause for QuantifiedResponse<'p, F, O, R>
where F: MockFn, O: Ordering, R: Repetition,

Auto Trait Implementations§

§

impl<'p, F, O, R> Freeze for QuantifiedResponse<'p, F, O, R>
where O: Freeze, R: Freeze,

§

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 O: Send, R: Send, F: Send,

§

impl<'p, F, O, R> Sync for QuantifiedResponse<'p, F, O, R>
where O: Sync, R: Sync, F: Sync,

§

impl<'p, F, O, R> Unpin for QuantifiedResponse<'p, F, O, R>
where O: Unpin, R: Unpin, F: Unpin,

§

impl<'p, F, O, R> !UnwindSafe for QuantifiedResponse<'p, F, O, R>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Is for T
where T: ?Sized,

§

type EqTo = T

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.