[][src]Struct mock_it::Mock

pub struct Mock<I, O> { /* fields omitted */ }

Methods

impl<I: PartialEq, O: Clone> Mock<I, O>[src]

pub fn new(default: O) -> Mock<I, O>[src]

pub fn given(&self, input: I) -> Output<O>[src]

pub fn called(&self, input: I) -> O[src]

pub fn was_called_with(&self, input: I) -> Validator<I>[src]

Trait Implementations

impl<I, O: Clone> Clone for Mock<I, O>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<I, O> Send for Mock<I, O> where
    I: Send,
    O: Send

impl<I, O> Sync for Mock<I, O> where
    I: Send,
    O: Send + Sync

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]