pub enum BlockHeaderChanges {
Connected(IndexedHeader),
Reorganized {
accepted: Vec<IndexedHeader>,
reorganized: Vec<IndexedHeader>,
},
}Expand description
Changes applied to the chain of block headers.
Variants§
Connected(IndexedHeader)
A block was connected to the tip of the chain.
Reorganized
Blocks were reorganized and a new chain of most work was selected.
Fields
§
accepted: Vec<IndexedHeader>Newly accepted blocks from the chain of most work.
§
reorganized: Vec<IndexedHeader>Blocks that were removed from the chain.
Trait Implementations§
Source§impl Clone for BlockHeaderChanges
impl Clone for BlockHeaderChanges
Source§fn clone(&self) -> BlockHeaderChanges
fn clone(&self) -> BlockHeaderChanges
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 BlockHeaderChanges
impl RefUnwindSafe for BlockHeaderChanges
impl Send for BlockHeaderChanges
impl Sync for BlockHeaderChanges
impl Unpin for BlockHeaderChanges
impl UnwindSafe for BlockHeaderChanges
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