referrerpolicy=no-referrer-when-downgrade

Trait finality_relay::SourceHeader

source ·
pub trait SourceHeader<Hash, Number, Reader>: Clone + Debug + PartialEq + Send + Sync {
    // Required methods
    fn hash(&self) -> Hash;
    fn number(&self) -> Number;
    fn is_mandatory(&self) -> bool;
}
Expand description

Header that we’re receiving from source node.

Required Methods§

source

fn hash(&self) -> Hash

Returns hash of header.

source

fn number(&self) -> Number

Returns number of header.

source

fn is_mandatory(&self) -> bool

Returns true if this header needs to be submitted to target node.

Object Safety§

This trait is not object safe.

Implementors§