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 PartialEq for LoneBlockHeader
[src]
fn eq(&self, __arg_0: &LoneBlockHeader) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LoneBlockHeader) -> bool
[src]
This method tests for !=
.
impl Eq for LoneBlockHeader
[src]
impl Clone for LoneBlockHeader
[src]
fn clone(&self) -> LoneBlockHeader
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for LoneBlockHeader
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S: SimpleEncoder> ConsensusEncodable<S> for LoneBlockHeader
[src]
fn consensus_encode(&self, s: &mut S) -> Result<(), S::Error>
[src]
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>
[src]
Decode an object with a well-defined format