Struct simulacrum::user::Method
[−]
[src]
#[must_use]pub struct Method<'a, I, O> { /* fields omitted */ }
What you get from calling .expect_METHOD_NAME()
on a Mock.
From here, use this struct's methods to set the number of calls expected.
Methods
impl<'a, I, O> Method<'a, I, O> where
I: 'static,
O: 'static,
[src]
I: 'static,
O: 'static,
pub fn called_never(self) -> TrackedMethod<'a, I, O>
[src]
You expect this method to be called zero times.
pub fn called_once(self) -> TrackedMethod<'a, I, O>
[src]
You expect this method to be called only once.
pub fn called_times(self, calls: i64) -> TrackedMethod<'a, I, O>
[src]
You expect this method to be called calls
number of times.
pub fn called_any(self) -> TrackedMethod<'a, I, O>
[src]
This method can be called any number of times, including zero.