pub enum MempoolSequence {
BlockConnection {
block_hash: String,
zmq_seq: u32,
},
BlockDisconnection {
block_hash: String,
zmq_seq: u32,
},
TxRemoved {
txid: String,
mp_seq_num: u64,
zmq_seq: u32,
},
TxAdded {
txid: String,
mp_seq_num: u64,
zmq_seq: u32,
},
SeqError {
error: ZMQSeqListenerError,
},
SeqStart {
bitcoind_already_working: bool,
},
}
Expand description
Enum with all possible ZMQ messages arriving through the receiver
Variants§
BlockConnection
A new block has arrived with block_hash
BlockDisconnection
A block with block_hash
has been overridden
TxRemoved
A tx with txid
has been removed from the mempool.
TxAdded
A tx with txid
has been added to the mempool.
SeqError
An error has ocurred, and must be handled.
Fields
§
error: ZMQSeqListenerError
SeqStart
First message to be received, shows if bitcoind node was already working when first msg arrives (zmq_seq==0)
Trait Implementations§
Source§impl Clone for MempoolSequence
impl Clone for MempoolSequence
Source§fn clone(&self) -> MempoolSequence
fn clone(&self) -> MempoolSequence
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MempoolSequence
impl Debug for MempoolSequence
Source§impl PartialEq for MempoolSequence
impl PartialEq for MempoolSequence
impl Eq for MempoolSequence
impl StructuralPartialEq for MempoolSequence
Auto Trait Implementations§
impl Freeze for MempoolSequence
impl RefUnwindSafe for MempoolSequence
impl Send for MempoolSequence
impl Sync for MempoolSequence
impl Unpin for MempoolSequence
impl UnwindSafe for MempoolSequence
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