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§
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]
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".