TxInfoMapper

Trait TxInfoMapper 

Source
pub trait TxInfoMapper<T> {
    type Out;
    type Err;

    // Required method
    fn try_map(
        &self,
        tx: &T,
        tx_info: TransactionInfo,
    ) -> Result<Self::Out, Self::Err>;
}
Expand description

Adds extra context to TransactionInfo.

Required Associated Types§

Source

type Out

An associated output type that carries TransactionInfo with some extra context.

Source

type Err

An associated error that can occur during the mapping.

Required Methods§

Source

fn try_map( &self, tx: &T, tx_info: TransactionInfo, ) -> Result<Self::Out, Self::Err>

Performs the conversion.

Implementations on Foreign Types§

Source§

impl<T> TxInfoMapper<T> for ()

Implementors§