Struct bitcoin::blockdata::block::LoneBlockHeader [] [src]

pub struct LoneBlockHeader {
    pub header: BlockHeader,
    pub tx_count: VarInt,
}

A block header with txcount attached, which is given in the headers network message.

Fields

The actual block header

The number of transactions in the block. This will always be zero when the LoneBlockHeader is returned as part ef a headers message.

Trait Implementations

impl PartialEq for LoneBlockHeader
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for LoneBlockHeader
[src]

impl Clone for LoneBlockHeader
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for LoneBlockHeader
[src]

[src]

Formats the value using the given formatter. Read more

impl<S: SimpleEncoder> ConsensusEncodable<S> for LoneBlockHeader
[src]

[src]

Encode an object with a well-defined format

impl<D: SimpleDecoder> ConsensusDecodable<D> for LoneBlockHeader
[src]

[src]

Decode an object with a well-defined format

Auto Trait Implementations