Struct futures_ringbuf::Dictator[][src]

pub struct Dictator { /* fields omitted */ }
Expand description

Dictator that makes random decisions based on a seed. That is the decisions are reproducible. For reproducible decisions, your use of the dictator must be deterministic.

Implementations

Birth place of all dictators. This method will log the seed with log::trace. Make sure you turn on logging for the futures_ringbuf crate so you can reproduce failing tests.

Ask the dictator permission to do something.

Ask the dictator to pick from a range of values.

Create a new random seed from entropy.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.