hotstuff_rs::networking::receiving

Trait Cacheable

source
pub(crate) trait Cacheable {
    // Required methods
    fn view(&self) -> ViewNumber;
    fn size(&self) -> u64;
}
Expand description

A cacheable message can be inserted into the progress message buffer.

For this, we require that:

  1. The message is associated with a view,
  2. The message size is statically known and depends on a particular enum variant.

Required Methods§

source

fn view(&self) -> ViewNumber

source

fn size(&self) -> u64

Implementors§