Epochable

Trait Epochable 

Source
pub trait Epochable {
    // Required method
    fn epoch(&self) -> Epoch;
}
Expand description

Epochable is a trait that provides access to the epoch number. Any consensus message or object that is associated with a specific epoch should implement this.

Required Methods§

Source

fn epoch(&self) -> Epoch

Returns the epoch associated with this object.

Implementors§