Struct galvanic_mock_lib::ExpectBehaviour [] [src]

pub struct ExpectBehaviour {
    pub stmt_id: usize,
    pub bound: Rc<Any>,
    // some fields omitted
}

Stores the state of a expected behaviour.

Fields

The unique id of the behaviour within the mocked method to which it belongs.

The bound variables available to the behaviour's ArgMatcher.

Methods

impl ExpectBehaviour
[src]

[src]

Creates a new behaviour which is satisfied if matched times.

[src]

Creates a new behaviour which is satisfied if matched at_least_times.

[src]

Creates a new behaviour which is satisfied if matched at_most_times.

[src]

Creates a new behaviour which is satisfied if matched between [at_least_times, at_most_times] (inclusive endpoints).

[src]

Notifies the behaviour that it has been matched.

[src]

Returns true iff current number of matches would satify the behaviours expected repetitions.

[src]

Returns a description of the behaviour.