Struct mockers::CallMatch0 [] [src]

#[must_use]
pub struct CallMatch0<Res> {
    // some fields omitted
}

Methods

impl<Res> CallMatch0<Res>
[src]

fn new(mock_id: usize, method_name: &'static str) -> Self

impl<Res> CallMatch0<Res>
[src]

fn and_return(self, result: Res) -> Expectation0<Res>

fn and_panic(self, msg: String) -> Expectation0<Res>

fn and_call<F>(self, func: F) -> Expectation0<Res> where F: FnOnce() -> Res + 'static

fn never(self) -> ExpectationNever<Self>

impl<Res: Clone> CallMatch0<Res>
[src]

fn and_return_clone(self, result: Res) -> Reaction0<Res>

fn and_panic_clone(self, msg: String) -> Reaction0<Res>

fn and_call_clone<F>(self, func: F) -> Reaction0<Res> where F: FnMut() -> Res + 'static

Trait Implementations

impl<Res> CallMatch for CallMatch0<Res>
[src]

fn matches_target(&self, call: &Call) -> bool

fn matches(&self, call: &Call) -> bool

fn validate(&self, _call: &Call) -> Vec<Result<()String>>

fn get_mock_id(&self) -> usize

fn get_method_name(&self) -> &'static str

fn describe(&self) -> String