pub struct ChainInfo {
pub best_block_hash: BlockHash,
pub height: u32,
pub blocks: u32,
}Expand description
Information about the current chain state.
Fields§
§best_block_hash: BlockHashHash of the best (most-work) block.
height: u32Height of the best block (0 for genesis).
blocks: u32Total number of blocks including genesis.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChainInfo
impl RefUnwindSafe for ChainInfo
impl Send for ChainInfo
impl Sync for ChainInfo
impl Unpin for ChainInfo
impl UnsafeUnpin for ChainInfo
impl UnwindSafe for ChainInfo
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