Struct clarity_repl::clarity::util::bitcoin::blockdata::block::LoneBlockHeader
source · [−]pub struct LoneBlockHeader {
pub header: BlockHeader,
pub tx_count: VarInt,
}
Expand description
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
sourceimpl Clone for LoneBlockHeader
impl Clone for LoneBlockHeader
sourcefn clone(&self) -> LoneBlockHeader
fn clone(&self) -> LoneBlockHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<D: SimpleDecoder> ConsensusDecodable<D> for LoneBlockHeader
impl<D: SimpleDecoder> ConsensusDecodable<D> for LoneBlockHeader
sourcefn consensus_decode(d: &mut D) -> Result<LoneBlockHeader, Error>
fn consensus_decode(d: &mut D) -> Result<LoneBlockHeader, Error>
Decode an object with a well-defined format
sourceimpl<S: SimpleEncoder> ConsensusEncodable<S> for LoneBlockHeader
impl<S: SimpleEncoder> ConsensusEncodable<S> for LoneBlockHeader
sourceimpl Debug for LoneBlockHeader
impl Debug for LoneBlockHeader
sourceimpl PartialEq<LoneBlockHeader> for LoneBlockHeader
impl PartialEq<LoneBlockHeader> for LoneBlockHeader
sourcefn eq(&self, other: &LoneBlockHeader) -> bool
fn eq(&self, other: &LoneBlockHeader) -> bool
impl Eq for LoneBlockHeader
impl StructuralEq for LoneBlockHeader
impl StructuralPartialEq for LoneBlockHeader
Auto Trait Implementations
impl RefUnwindSafe for LoneBlockHeader
impl Send for LoneBlockHeader
impl Sync for LoneBlockHeader
impl Unpin for LoneBlockHeader
impl UnwindSafe for LoneBlockHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more