Enum nakamoto_common::block::tree::ImportResult
source · pub enum ImportResult {
TipChanged(BlockHeader, BlockHash, Height, Vec<(Height, BlockHeader)>, NonEmpty<(Height, BlockHeader)>),
TipUnchanged,
}
Expand description
The outcome of a successful block header import.
Variants
TipChanged(BlockHeader, BlockHash, Height, Vec<(Height, BlockHeader)>, NonEmpty<(Height, BlockHeader)>)
A new tip was found. This can happen in either of two scenarios:
- The imported block(s) extended the active chain, or
- The imported block(s) caused a chain re-org.
TipUnchanged
The block headers were imported successfully, but our best block hasn’t changed. This will happen if we imported a duplicate, orphan or stale block.
Trait Implementations
sourceimpl Clone for ImportResult
impl Clone for ImportResult
sourcefn clone(&self) -> ImportResult
fn clone(&self) -> ImportResult
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 Debug for ImportResult
impl Debug for ImportResult
sourceimpl PartialEq<ImportResult> for ImportResult
impl PartialEq<ImportResult> for ImportResult
sourcefn eq(&self, other: &ImportResult) -> bool
fn eq(&self, other: &ImportResult) -> bool
impl Eq for ImportResult
impl StructuralEq for ImportResult
impl StructuralPartialEq for ImportResult
Auto Trait Implementations
impl RefUnwindSafe for ImportResult
impl Send for ImportResult
impl Sync for ImportResult
impl Unpin for ImportResult
impl UnwindSafe for ImportResult
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