Enum grin_chain::types::BlockStatus
source · pub enum BlockStatus {
Next {
prev: Tip,
},
Fork {
prev: Tip,
head: Tip,
fork_point: Tip,
},
Reorg {
prev: Tip,
prev_head: Tip,
fork_point: Tip,
},
}
Expand description
Status of an accepted block.
Variants§
Next
Block is the “next” block, updating the chain head.
Fork
Block does not update the chain head and is a fork.
Fields
Reorg
Block updates the chain head via a (potentially disruptive) “reorg”. Previous block was not our previous chain head.
Implementations§
Trait Implementations§
source§impl Clone for BlockStatus
impl Clone for BlockStatus
source§fn clone(&self) -> BlockStatus
fn clone(&self) -> BlockStatus
Returns a copy 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 moresource§impl Debug for BlockStatus
impl Debug for BlockStatus
source§impl PartialEq for BlockStatus
impl PartialEq for BlockStatus
source§fn eq(&self, other: &BlockStatus) -> bool
fn eq(&self, other: &BlockStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BlockStatus
impl StructuralPartialEq for BlockStatus
Auto Trait Implementations§
impl Freeze for BlockStatus
impl RefUnwindSafe for BlockStatus
impl Send for BlockStatus
impl Sync for BlockStatus
impl Unpin for BlockStatus
impl UnwindSafe for BlockStatus
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
source§impl<'a, T> DefaultFeatures<'a> for T
impl<'a, T> DefaultFeatures<'a> for T
source§fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.source§impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for Twhere
T: 'a + Clone,
source§fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a>>
Clone this value, and then immediately put it into a
Box
behind a trait object of this trait.