Struct simulacrum::user::TrackedMethod [] [src]

pub struct TrackedMethod<'a, I, O> { /* fields omitted */ }

Once you've specified the number of times you expect a method to be called, you can specify additional behaviors and expectations through this object's methods.

Methods

impl<'a, I, O> TrackedMethod<'a, I, O> where
    I: 'static,
    O: 'static, 
[src]

[src]

Specify a Validator object that will validate parameters when called.

If it returns false when its validate() method is called, the expectation will be invalidated.

[src]

Specify a behavior to be executed as a side-effect when the method is called.

The primary use for this is to modify parameters passed as mutable references.

[src]

Trait Implementations

Auto Trait Implementations

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

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