pub struct When<I, O> { /* private fields */ }
Implementations
sourceimpl<I: PartialEq, O> When<I, O>
impl<I: PartialEq, O> When<I, O>
sourcepub fn will_return(self, value: O)
pub fn will_return(self, value: O)
Use the when return value when the mock is called with the specified input
Auto Trait Implementations
impl<I, O> RefUnwindSafe for When<I, O> where
I: RefUnwindSafe,
impl<I, O> Send for When<I, O> where
I: Send,
O: Send,
impl<I, O> Sync for When<I, O> where
I: Send + Sync,
O: Send,
impl<I, O> Unpin for When<I, O> where
I: Unpin,
impl<I, O> UnwindSafe for When<I, O> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more