Struct clarity_repl::clarity::util::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 of a headers message.

Trait Implementations

impl Clone for LoneBlockHeader[src]

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

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

impl Debug for LoneBlockHeader[src]

impl Eq for LoneBlockHeader[src]

impl PartialEq<LoneBlockHeader> for LoneBlockHeader[src]

impl StructuralEq for LoneBlockHeader[src]

impl StructuralPartialEq for LoneBlockHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,