pub enum TxStatus {
Ready,
Future,
Broadcast,
Retracted,
InBlock {
block_hash: String,
block_height: u64,
},
Finalized {
block_hash: String,
block_height: u64,
},
FinalityTimeout,
Usurped,
Dropped,
Invalid,
}Expand description
Runtime-agnostic mirror of a Substrate transaction-pool status.
Subxt (and Polkadot.js before it) exposes these as a tagged enum; we accept them as simple Rust variants so the translation can be tested without any Substrate dep.
Variants§
Ready
The tx was validated and is sitting in the ready queue.
Future
The tx is awaiting a gap in its signer’s nonce before it becomes ready.
Broadcast
The tx was broadcast to peers.
Retracted
The tx was previously included in a block that later got reverted; it’s back in the pool waiting to be re-included.
InBlock
The tx was included in a (non-final) block.
Finalized
The tx’s including block reached finality.
FinalityTimeout
The tx did not finalize within the node’s configured window.
Usurped
The tx was replaced in the pool by another tx with matching discriminators (same sender+nonce).
Dropped
The tx was evicted from the pool (pool full, congested network).
Invalid
The node rejected the tx as invalid (bad signature, ValidateUnsigned
returned Err, etc.).
Trait Implementations§
impl Eq for TxStatus
impl StructuralPartialEq for TxStatus
Auto Trait Implementations§
impl Forget for TxStatus
impl Freeze for TxStatus
impl Move for TxStatus
impl RefUnwindSafe for TxStatus
impl Send for TxStatuswhere
RawVecInner: Send,
impl Sync for TxStatuswhere
RawVecInner: Sync,
impl Unpin for TxStatus
impl UnsafeUnpin for TxStatus
impl UnwindSafe for TxStatuswhere
RawVecInner: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more