Enum lightning_block_sync::poll::ChainTip
source · [−]pub enum ChainTip {
Common,
Better(ValidatedBlockHeader),
Worse(ValidatedBlockHeader),
}
Expand description
A chain tip relative to another chain tip in terms of block hash and chainwork.
Variants
Common
A chain tip with the same hash as another chain’s tip.
Better(ValidatedBlockHeader)
A chain tip with more chainwork than another chain’s tip.
Worse(ValidatedBlockHeader)
A chain tip with less or equal chainwork than another chain’s tip. In either case, the hashes of each tip will be different.
Trait Implementations
impl StructuralPartialEq for ChainTip
Auto Trait Implementations
impl RefUnwindSafe for ChainTip
impl Send for ChainTip
impl Sync for ChainTip
impl Unpin for ChainTip
impl UnwindSafe for ChainTip
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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