pub enum ChainEvent {
NewBlock {
height: u64,
hash: String,
view: u64,
proposer: u64,
timestamp: u64,
},
TxCommitted {
tx_hash: String,
height: u64,
},
EpochChange {
epoch: u64,
start_view: u64,
validator_count: usize,
},
}Expand description
Events broadcast to WebSocket subscribers.
Variants§
NewBlock
TxCommitted
Emitted when a transaction is included in a committed block.
EpochChange
Emitted when a new epoch begins (validator set change).
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
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