Skip to main content

SessionLawFixture

Trait SessionLawFixture 

Source
pub trait SessionLawFixture: SessionSorts {
    // Required methods
    fn law_wanting(&mut self, says: usize) -> Self::Id;
    fn law_unbeginnable(&mut self) -> Self::Id;
    fn law_wants(&mut self, id: &Self::Id, wanted: Wanted);
    fn law_passes(&mut self, elapsed: Duration);
    fn law_told(&self, id: &Self::Id) -> Vec<Telling>;
    fn law_abandonments(&self, id: &Self::Id) -> usize;
}
Expand description

Supplies the runs an attendance scenario cannot author for itself.

Required Methods§

Source

fn law_wanting(&mut self, says: usize) -> Self::Id

Authors one request wanting work whose run states the given number of things, one per pass, and is over once it has stated them.

Source

fn law_unbeginnable(&mut self) -> Self::Id

Authors one request whose work refuses to begin.

Source

fn law_wants(&mut self, id: &Self::Id, wanted: Wanted)

States what one request now wants of its run.

Source

fn law_passes(&mut self, elapsed: Duration)

Lets the stated time pass.

Source

fn law_told(&self, id: &Self::Id) -> Vec<Telling>

Observes everything one request was told, in the order it was told.

Source

fn law_abandonments(&self, id: &Self::Id) -> usize

Observes how many times one run was told to end whether or not it had finished.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§