Trait tendermint_machine::ext::Block

source ·
pub trait Block: Send + Sync + Clone + PartialEq + Eq + Debug + Encode + Decode {
    type Id: Send + Sync + Copy + Clone + PartialEq + Eq + AsRef<[u8]> + Debug + Encode + Decode;

    // Required method
    fn id(&self) -> Self::Id;
}
Expand description

Trait representing a Block.

Required Associated Types§

Required Methods§

source

fn id(&self) -> Self::Id

Return the deterministic, unique ID for this block.

Object Safety§

This trait is not object safe.

Implementors§