Viewable

Trait Viewable 

Source
pub trait Viewable {
    type View;

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

Viewable is a trait that provides access to the view (round) number. Any consensus message or object that is associated with a specific view should implement this.

Required Associated Types§

Source

type View

View is the type used to indicate the in-progress consensus decision.

Required Methods§

Source

fn view(&self) -> Self::View

Returns the view associated with this object.

Implementors§