pub trait FromConsensusHeader<T> {
// Required method
fn from_consensus_header(header: SealedHeader<T>, block_size: usize) -> Self;
}Expand description
Conversion trait for obtaining RPC header from a consensus header.
Required Methods§
Sourcefn from_consensus_header(header: SealedHeader<T>, block_size: usize) -> Self
fn from_consensus_header(header: SealedHeader<T>, block_size: usize) -> Self
Takes a consensus header and converts it into self.
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.