[−][src]Struct mockiato::MethodCallBuilder
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]
A: for<'args> ArgumentsMatcher<'args>,
pub fn returns(&mut self, return_value: R) -> &mut Self where
R: Clone + 'static,
[src]
R: Clone + 'static,
Defines the return value for this method.
The value must be Clone
able.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]
E: Into<ExpectedCalls>,
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]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
π¬ This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,