pub enum TransactionStatus<Hash> {
Validated,
Broadcasted,
BestChainBlockIncluded {
block: Option<TransactionBlockDetails<Hash>>,
},
Finalized {
block: TransactionBlockDetails<Hash>,
},
Error {
error: String,
},
Invalid {
error: String,
},
Dropped {
error: String,
},
}Expand description
Transaction progress events
Variants§
Validated
Transaction is part of the future queue.
Broadcasted
The transaction has been broadcast to other nodes.
Note: This event is no longer expected to be returned as of the chainHead_v1 spec, but we do so for compatibility with older versions of Smoldot, which do return it.
BestChainBlockIncluded
Transaction has been included in block with given details. Null is returned if the transaction is no longer in any block of the best chain.
Fields
§
block: Option<TransactionBlockDetails<Hash>>Details of the block it’s been seen in.
Finalized
The transaction is in a block that’s been finalized.
Fields
§
block: TransactionBlockDetails<Hash>Details of the block it’s been seen in.
Error
Something went wrong in the node.
Invalid
Transaction is invalid (bad nonce, signature etc).
Dropped
The transaction was dropped.
Trait Implementations§
Source§impl<Hash: Clone> Clone for TransactionStatus<Hash>
impl<Hash: Clone> Clone for TransactionStatus<Hash>
Source§fn clone(&self) -> TransactionStatus<Hash>
fn clone(&self) -> TransactionStatus<Hash>
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<Hash: Debug> Debug for TransactionStatus<Hash>
impl<Hash: Debug> Debug for TransactionStatus<Hash>
Source§impl<'de, Hash> Deserialize<'de> for TransactionStatus<Hash>where
Hash: Deserialize<'de>,
impl<'de, Hash> Deserialize<'de> for TransactionStatus<Hash>where
Hash: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Hash: PartialEq> PartialEq for TransactionStatus<Hash>
impl<Hash: PartialEq> PartialEq for TransactionStatus<Hash>
Source§impl<Hash> Serialize for TransactionStatus<Hash>where
Hash: Serialize,
impl<Hash> Serialize for TransactionStatus<Hash>where
Hash: Serialize,
impl<Hash: Eq> Eq for TransactionStatus<Hash>
impl<Hash> StructuralPartialEq for TransactionStatus<Hash>
Auto Trait Implementations§
impl<Hash> Freeze for TransactionStatus<Hash>where
Hash: Freeze,
impl<Hash> RefUnwindSafe for TransactionStatus<Hash>where
Hash: RefUnwindSafe,
impl<Hash> Send for TransactionStatus<Hash>where
Hash: Send,
impl<Hash> Sync for TransactionStatus<Hash>where
Hash: Sync,
impl<Hash> Unpin for TransactionStatus<Hash>where
Hash: Unpin,
impl<Hash> UnwindSafe for TransactionStatus<Hash>where
Hash: UnwindSafe,
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