pub enum ChainEvent {
BlockConnected {
hash: BlockHash,
height: u32,
num_txs: usize,
},
BlockDisconnected {
hash: BlockHash,
height: u32,
},
TransactionAddedToMempool {
txid: Txid,
vsize: u64,
fee: i64,
},
TransactionRemovedFromMempool {
txid: Txid,
reason: MempoolRemovalReason,
},
}Expand description
A chain state change event.
Variants§
BlockConnected
A new block was connected to the active chain tip.
Fields
BlockDisconnected
A block was disconnected from the active chain tip (reorg).
Fields
TransactionAddedToMempool
A transaction was accepted into the mempool.
TransactionRemovedFromMempool
A transaction was removed from the mempool.
Trait Implementations§
Source§impl Clone for ChainEvent
impl Clone for ChainEvent
Source§fn clone(&self) -> ChainEvent
fn clone(&self) -> ChainEvent
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 ChainEvent
impl Debug for ChainEvent
Source§impl PartialEq for ChainEvent
impl PartialEq for ChainEvent
impl Eq for ChainEvent
impl StructuralPartialEq for ChainEvent
Auto Trait Implementations§
impl Freeze for ChainEvent
impl RefUnwindSafe for ChainEvent
impl Send for ChainEvent
impl Sync for ChainEvent
impl Unpin for ChainEvent
impl UnsafeUnpin for ChainEvent
impl UnwindSafe for ChainEvent
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