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

header: BlockHeader

The actual block header

tx_count: VarInt

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 Debug for LoneBlockHeader
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for LoneBlockHeader
[src]

fn clone(&self) -> LoneBlockHeader

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Eq for LoneBlockHeader
[src]

impl PartialEq for LoneBlockHeader
[src]

fn eq(&self, __arg_0: &LoneBlockHeader) -> bool

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

fn ne(&self, __arg_0: &LoneBlockHeader) -> bool

This method tests for !=.

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

fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error>

Encode an object with a well-defined format

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

fn consensus_decode(d: &mut D) -> Result<LoneBlockHeader, D::Error>

Decode an object with a well-defined format