consensus_core

Trait CommitAPI

Source
pub trait CommitAPI {
    // Required methods
    fn round(&self) -> Round;
    fn index(&self) -> CommitIndex;
    fn previous_digest(&self) -> CommitDigest;
    fn timestamp_ms(&self) -> BlockTimestampMs;
    fn leader(&self) -> BlockRef;
    fn blocks(&self) -> &[BlockRef];
}
Expand description

Accessors to Commit info.

Required Methods§

Implementors§