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: BlockHeaderThe actual block header
tx_count: VarIntThe number of transactions in the block. This will always be zero
when the LoneBlockHeader is returned as part of a headers message.
Trait Implementations§
Source§impl Clone for LoneBlockHeader
impl Clone for LoneBlockHeader
Source§fn clone(&self) -> LoneBlockHeader
fn clone(&self) -> LoneBlockHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoneBlockHeader
impl Debug for LoneBlockHeader
Source§impl<D: Decoder> Decodable<D> for LoneBlockHeader
impl<D: Decoder> Decodable<D> for LoneBlockHeader
Source§fn 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
Source§impl<S: Encoder> Encodable<S> for LoneBlockHeader
impl<S: Encoder> Encodable<S> for LoneBlockHeader
impl Eq for LoneBlockHeader
Source§impl PartialEq for LoneBlockHeader
impl PartialEq for LoneBlockHeader
Source§fn eq(&self, other: &LoneBlockHeader) -> bool
fn eq(&self, other: &LoneBlockHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoneBlockHeader
Auto Trait Implementations§
impl Freeze for LoneBlockHeader
impl RefUnwindSafe for LoneBlockHeader
impl Send for LoneBlockHeader
impl Sync for LoneBlockHeader
impl Unpin for LoneBlockHeader
impl UnsafeUnpin for LoneBlockHeader
impl UnwindSafe for LoneBlockHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more