Structs§
- An owned consensus session type which can be cloned and shared across threads. See method
spawn_blocking
within for context on the usefulness of this type. Please note - you must useConsensusProxy
type alias instead of this struct.
Traits§
- Consensus controller trait. Includes methods required to start/stop/control consensus, but which should not be exposed to ordinary users
- Defines a trait which handles consensus resets for external parts of the system. We avoid using the generic notification system since the reset needs to be handled synchronously in order to retain state consistency
Functions§
- Runs the provided closure on a thread where blocking is acceptable.