Skip to main content

Crate hop_consensus

Crate hop_consensus 

Source
Expand description

Bounded deterministic sequencing for HOP channel actions.

This crate does not implement distributed consensus. It provides a local sequencing contract that a replicated consensus protocol can drive.

Structs§

ApplyReport
Result of applying a valid queue plan.
DeterministicSequencer
A bounded, in-memory, first-in-first-out HOP action sequencer.
Plan
An immutable prefix plan produced from the current queue.
Receipt
Receipt for an action committed to a channel.

Enums§

SequencerError
Sequencer admission or plan errors.

Constants§

DEFAULT_QUEUE_CAPACITY
Default maximum number of actions waiting in memory.

Traits§

Consensus
Contract implemented by deterministic local action sequencers.

Type Aliases§

SimpleConsensus
Backward-compatible name for the deterministic local sequencer.