Enum substreams::pb::substreams::ForkStep
source · #[repr(i32)]pub enum ForkStep {
StepUnknown = 0,
StepNew = 1,
StepUndo = 2,
StepIrreversible = 4,
}
Variants§
StepUnknown = 0
StepNew = 1
Block is new head block of the chain, that is linear with the previous block
StepUndo = 2
Block is now forked and should be undone, it’s not the head block of the chain anymore
StepIrreversible = 4
Block is now irreversible and can be committed to (finality is chain specific, see chain documentation for more details)
Implementations§
Trait Implementations§
source§impl Ord for ForkStep
impl Ord for ForkStep
source§impl PartialEq for ForkStep
impl PartialEq for ForkStep
source§impl PartialOrd for ForkStep
impl PartialOrd for ForkStep
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ForkStep
impl Eq for ForkStep
impl StructuralPartialEq for ForkStep
Auto Trait Implementations§
impl Freeze for ForkStep
impl RefUnwindSafe for ForkStep
impl Send for ForkStep
impl Sync for ForkStep
impl Unpin for ForkStep
impl UnwindSafe for ForkStep
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