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§
Sourcefn is_mandatory(&self) -> bool
fn is_mandatory(&self) -> bool
Returns true if this header needs to be submitted to target node.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.