Trait mockers::CallMatch
[−]
[src]
pub trait CallMatch { fn matches(&self, call: &Call) -> bool; fn matches_target(&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; }
Required Methods
fn matches(&self, call: &Call) -> bool
fn matches_target(&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
Implementors
impl<Res> CallMatch for CallMatch0<Res>
impl<Arg0, Res> CallMatch for CallMatch1<Arg0, Res>
impl<Arg0, Arg1, Res> CallMatch for CallMatch2<Arg0, Arg1, Res>
impl<Arg0, Arg1, Arg2, Res> CallMatch for CallMatch3<Arg0, Arg1, Arg2, Res>
impl<Arg0, Arg1, Arg2, Arg3, Res> CallMatch for CallMatch4<Arg0, Arg1, Arg2, Arg3, Res>