Struct mockers::Scenario [] [src]

pub struct Scenario {
    // some fields omitted
}

Methods

impl Scenario
[src]

fn new() -> Self

fn create_mock<T: ?Sized>(&mut self) -> &'static T::MockImpl where &'static T: Mocked

fn create_named_mock<T: ?Sized>(&mut self, name: String) -> &'static T::MockImpl where &'static T: Mocked

fn expect<C: Expectation + 'static>(&mut self, call: C)

Trait Implementations

impl Drop for Scenario
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more