pub struct ReorgEvent {
pub fork_block: u64,
pub depth: u64,
pub old_hash: String,
pub new_hash: String,
pub current_tip: u64,
}Expand description
Information about a detected reorganization.
Fields§
§fork_block: u64The lowest block number that changed (fork point).
depth: u64The depth of the reorg (how many blocks were replaced).
old_hash: StringThe old block hash at the fork point.
new_hash: StringThe new block hash at the fork point.
current_tip: u64The current chain tip block number.
Trait Implementations§
Source§impl Clone for ReorgEvent
impl Clone for ReorgEvent
Source§fn clone(&self) -> ReorgEvent
fn clone(&self) -> ReorgEvent
Returns a duplicate 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 ReorgEvent
impl Debug for ReorgEvent
Auto Trait Implementations§
impl Freeze for ReorgEvent
impl RefUnwindSafe for ReorgEvent
impl Send for ReorgEvent
impl Sync for ReorgEvent
impl Unpin for ReorgEvent
impl UnsafeUnpin for ReorgEvent
impl UnwindSafe for ReorgEvent
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