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