Enum nakamoto_node::client::protocol::InventoryEvent
[−]pub enum InventoryEvent {
BlockReceived {
from: SocketAddr,
height: u64,
},
BlockProcessed {
block: Block,
height: u64,
fees: Option<FeeEstimate>,
},
Acknowledged {
txid: Txid,
peer: SocketAddr,
},
Confirmed {
transaction: Transaction,
height: u64,
block: BlockHash,
},
Reverted {
transaction: Transaction,
},
TimedOut {
peer: SocketAddr,
},
}Expand description
An event emitted by the inventory manager.
Variants
BlockReceived
Block received.
BlockProcessed
Block processed.
Acknowledged
A peer acknowledged one of our transaction inventories.
Confirmed
Fields
height: u64The height at which it was confirmed.
A transaction was confirmed.
Reverted
A transaction was reverted.
TimedOut
Fields
peer: SocketAddrPeer who timed out.
A request timed out.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more