Struct simulacrum_macros::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]

[src]

You expect this method to be called zero times.

[src]

You expect this method to be called only once.

[src]

You expect this method to be called calls number of times.

[src]

This method can be called any number of times, including zero.

Trait Implementations

Auto Trait Implementations

impl<'a, I, O> !Send for Method<'a, I, O>

impl<'a, I, O> !Sync for Method<'a, I, O>