ConvertTx in reth_node_api - Rust

pub trait ConvertTx<RawTx>:
    Send
    + Sync
    + 'static {
    type Tx;
    type Error;

    // Required method
    fn convert(&self, raw: RawTx) -> Result<Self::Tx, Self::Error>;
}
Expand description

Converts a raw transaction into an executable transaction.

This trait abstracts the conversion logic (e.g., decoding, signature recovery) that is parallelized in the engine.

Required Associated Types§

Source

type Tx

The executable transaction type.

Source

type Error

Errors that may occur during conversion.

Required Methods§

Implementations on Foreign Types§

Source§

impl<A, B, RA, RB> ConvertTx<Either<RA, RB>> for Either<A, B>

Source§

type Tx = Either<<A as ConvertTx<RA>>::Tx, <B as ConvertTx<RB>>::Tx>

Source§

type Error = Either<<A as ConvertTx<RA>>::Error, <B as ConvertTx<RB>>::Error>

Source§

fn convert( &self, raw: Either<RA, RB>, ) -> Result<<Either<A, B> as ConvertTx<Either<RA, RB>>>::Tx, <Either<A, B> as ConvertTx<Either<RA, RB>>>::Error>

Implementors§