[][src]Struct mockiato::MethodCallBuilder

pub struct MethodCallBuilder<'a, A, R> where
    A: for<'args> ArgumentsMatcher<'args>, 
{ /* fields omitted */ }

Configures an expected method call. This builder is returned from the expect_* methods on a generated mock.

Methods

impl<'a, A, R> MethodCallBuilder<'a, A, R> where
    A: for<'args> ArgumentsMatcher<'args>, 
[src]

pub fn returns(&mut self, return_value: R) -> &mut Self where
    R: Clone + 'static, 
[src]

Defines the return value for this method. The value must be Cloneable.g

pub fn panics(&mut self) -> &mut Self[src]

Defines that this method panics.

pub fn panics_with_message(&mut self, message: &'static str) -> &mut Self[src]

Defines that this method panics with a message.

pub fn times<E>(&mut self, expected_calls: E) -> &mut Self where
    E: Into<ExpectedCalls>, 
[src]

Defines how often this method should be called.

Auto Trait Implementations

impl<'a, A, R> !Send for MethodCallBuilder<'a, A, R>

impl<'a, A, R> !Sync for MethodCallBuilder<'a, A, R>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

πŸ”¬ This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

πŸ”¬ This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.