StepMessage

Trait StepMessage 

Source
pub trait StepMessage {
    const STEP_NAME: StepName;

    // Required method
    fn header(&self) -> ConsensusHeader;

    // Provided method
    fn get_step(&self) -> u8 { ... }
}

Required Associated Constants§

Required Methods§

Provided Methods§

Source

fn get_step(&self) -> u8

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl StepMessage for Candidate

Source§

const STEP_NAME: StepName = StepName::Proposal

Source§

impl StepMessage for Ratification

Source§

const STEP_NAME: StepName = StepName::Ratification

Source§

impl StepMessage for Validation

Source§

const STEP_NAME: StepName = StepName::Validation

Source§

impl StepMessage for ValidationQuorum

Source§

const STEP_NAME: StepName = StepName::Validation