reth::transaction_pool::pool

Trait ParkedOrd

pub trait ParkedOrd:
    Ord
    + Clone
    + From<Arc<ValidPoolTransaction<Self::Transaction>>>
    + Into<Arc<ValidPoolTransaction<Self::Transaction>>>
    + Deref<Target = Arc<ValidPoolTransaction<Self::Transaction>>> {
    type Transaction: PoolTransaction;
}
Expand description

Helper trait used for custom Ord wrappers around a transaction.

This is effectively a wrapper for Arc<ValidPoolTransaction> with custom Ord implementation.

Required Associated Types§

type Transaction: PoolTransaction

The wrapper transaction type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<T> ParkedOrd for BasefeeOrd<T>
where T: PoolTransaction,

§

type Transaction = T

§

impl<T> ParkedOrd for QueuedOrd<T>
where T: PoolTransaction,

§

type Transaction = T