Struct galvanic_mock_lib::GivenBehaviour [] [src]

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

Stores the state of a given 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 GivenBehaviour
[src]

[src]

Creates a new behaviour which is never exhausted.

[src]

Creates a new behaviour which is never exhausted after being matched times.

[src]

Notifies the behaviour that it has been matched.

[src]

Returns true iff the behaviour is exhausted.

[src]

Returns a description of the behaviour.