pub enum FollowAction {
None,
BlockAdded(Block),
BlockReorged(Block, Header),
}
Expand description
The next action to take when following the chain
Variants§
None
No action required, synced to chain tip
BlockAdded(Block)
A block has been added to the chain. Provides the new block.
BlockReorged(Block, Header)
The current block has been reorganized out of the chain. Provides the block that was reorged out and the previous block header.
Trait Implementations§
Source§impl PartialEq for FollowAction
impl PartialEq for FollowAction
impl StructuralPartialEq for FollowAction
Auto Trait Implementations§
impl Freeze for FollowAction
impl RefUnwindSafe for FollowAction
impl Send for FollowAction
impl Sync for FollowAction
impl Unpin for FollowAction
impl UnwindSafe for FollowAction
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