Struct ethcore::header::ExtendedHeader
[−]
[src]
pub struct ExtendedHeader { pub header: Header, pub is_finalized: bool, pub parent_total_difficulty: U256, pub metadata: Option<Vec<u8>>, }
Extended block header, wrapping Header
with finalized and total difficulty information.
Fields
header: Header
The actual header.
is_finalized: bool
Whether the block underlying this header is considered finalized.
parent_total_difficulty: U256
The parent block difficulty.
metadata: Option<Vec<u8>>
The block metadata information.
Trait Implementations
impl Debug for ExtendedHeader
[src]
impl Debug for ExtendedHeader
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ExtendedHeader
[src]
impl Clone for ExtendedHeader
fn clone(&self) -> ExtendedHeader
[src]
fn clone(&self) -> ExtendedHeader
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for ExtendedHeader
[src]
impl PartialEq for ExtendedHeader
fn eq(&self, __arg_0: &ExtendedHeader) -> bool
[src]
fn eq(&self, __arg_0: &ExtendedHeader) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ExtendedHeader) -> bool
[src]
fn ne(&self, __arg_0: &ExtendedHeader) -> bool
This method tests for !=
.
impl Eq for ExtendedHeader
[src]
impl Eq for ExtendedHeader
impl Header for ExtendedHeader
[src]
impl Header for ExtendedHeader
fn bare_hash(&self) -> H256
[src]
fn bare_hash(&self) -> H256
Cryptographic hash of the header, excluding the seal.
fn hash(&self) -> H256
[src]
fn hash(&self) -> H256
Cryptographic hash of the header, including the seal.
fn seal(&self) -> &[Vec<u8>]
[src]
fn seal(&self) -> &[Vec<u8>]
Get a reference to the seal fields.
The author of the header.
fn number(&self) -> BlockNumber
[src]
fn number(&self) -> BlockNumber
The number of the header.
impl ScoredHeader for ExtendedHeader
[src]
impl ScoredHeader for ExtendedHeader
type Value = U256
fn score(&self) -> &U256
[src]
fn score(&self) -> &U256
Get the score of this header.
fn set_score(&mut self, score: U256)
[src]
fn set_score(&mut self, score: U256)
Set the score of this header.
impl TotalScoredHeader for ExtendedHeader
[src]
impl TotalScoredHeader for ExtendedHeader
impl FinalizableHeader for ExtendedHeader
[src]
impl FinalizableHeader for ExtendedHeader
fn is_finalized(&self) -> bool
[src]
fn is_finalized(&self) -> bool
Get whether this header is considered finalized, so that it will never be replaced in reorganization.
impl WithMetadataHeader for ExtendedHeader
[src]
impl WithMetadataHeader for ExtendedHeader
Auto Trait Implementations
impl Send for ExtendedHeader
impl Send for ExtendedHeader
impl Sync for ExtendedHeader
impl Sync for ExtendedHeader