Struct mockers::CallMatchSend0
source · pub struct CallMatchSend0<Res> { /* private fields */ }
Expand description
Call matcher for methods of Send
able mock.
The difference is that argument matchers must
also implement Send
.
Implementations§
source§impl<Res> CallMatchSend0<Res>
impl<Res> CallMatchSend0<Res>
source§impl<Res: Send + 'static> CallMatchSend0<Res>
impl<Res: Send + 'static> CallMatchSend0<Res>
pub fn and_return( self, result: Res ) -> ExpectationSend0<Res, impl FnOnce() -> Res>
pub fn and_panic( self, msg: String ) -> ExpectationSend0<Res, impl FnOnce() -> Res>
pub fn and_call<F>(self, func: F) -> ExpectationSend0<Res, impl FnOnce() -> Res>
pub fn never(self) -> ExpectationNever<Self>
Trait Implementations§
source§impl<Res> CallMatch for CallMatchSend0<Res>
impl<Res> CallMatch for CallMatchSend0<Res>
fn matches_args(&self, call: &Call) -> bool
fn validate(&self, call: &Call) -> Vec<Result<(), String>>
fn get_mock_id(&self) -> usize
fn get_mock_type_id(&self) -> usize
fn get_method_name(&self) -> &'static str
fn get_type_param_ids(&self) -> &[usize]
fn describe(&self) -> String
fn matches(&self, call: &Call) -> bool
fn matches_target(&self, call: &Call) -> bool
fn matches_generic_method(&self, call: &Call) -> bool
fn matches_method(&self, call: &Call) -> bool
Auto Trait Implementations§
impl<Res> RefUnwindSafe for CallMatchSend0<Res>where
Res: RefUnwindSafe,
impl<Res> Send for CallMatchSend0<Res>where
Res: Send,
impl<Res> Sync for CallMatchSend0<Res>where
Res: Sync,
impl<Res> Unpin for CallMatchSend0<Res>where
Res: Unpin,
impl<Res> UnwindSafe for CallMatchSend0<Res>where
Res: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more