pub struct BlockIndexEntry {
pub header: BlockHeader,
pub height: u32,
pub chain_work: u128,
pub status: BlockValidationStatus,
}Expand description
Metadata tracked for each known block header.
Fields§
§header: BlockHeaderThe block header.
height: u32Height of this block.
chain_work: u128Cumulative proof-of-work up to and including this block. Stored as a u128 to avoid overflow for high-difficulty chains.
status: BlockValidationStatusValidation status.
Trait Implementations§
Source§impl Clone for BlockIndexEntry
impl Clone for BlockIndexEntry
Source§fn clone(&self) -> BlockIndexEntry
fn clone(&self) -> BlockIndexEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlockIndexEntry
impl RefUnwindSafe for BlockIndexEntry
impl Send for BlockIndexEntry
impl Sync for BlockIndexEntry
impl Unpin for BlockIndexEntry
impl UnsafeUnpin for BlockIndexEntry
impl UnwindSafe for BlockIndexEntry
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