Trait hotshot_types::traits::network::ViewMessage
source · pub trait ViewMessage<TYPES: NodeType> {
// Required methods
fn view_number(&self) -> TYPES::Time;
fn purpose(&self) -> MessagePurpose;
}
Expand description
a message
Required Methods§
sourcefn view_number(&self) -> TYPES::Time
fn view_number(&self) -> TYPES::Time
get the view out of the message
sourcefn purpose(&self) -> MessagePurpose
fn purpose(&self) -> MessagePurpose
get the purpose of the message