Trait TxHashRef

Source
pub trait TxHashRef {
    // Required method
    fn tx_hash(&self) -> &TxHash;
}
Expand description

Trait for types that provide access to a transaction hash reference.

This trait is implemented by types that contain or can provide a reference to a transaction hash (TxHash). It provides a standard interface for accessing transaction hashes without requiring ownership.

Required Methods§

Source

fn tx_hash(&self) -> &TxHash

Returns a reference to the transaction hash.

This assumes the implementing type already owns or has computed the transaction hash.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + TxHashRef + ?Sized> TxHashRef for &'a T

Source§

fn tx_hash(&self) -> &TxHash

Source§

impl<'a, T: 'a + TxHashRef + ?Sized> TxHashRef for &'a mut T

Source§

fn tx_hash(&self) -> &TxHash

Source§

impl<T: TxHashRef + ?Sized> TxHashRef for Box<T>

Source§

fn tx_hash(&self) -> &TxHash

Source§

impl<T: TxHashRef> TxHashRef for WithEncoded<T>

Source§

fn tx_hash(&self) -> &TxHash

Implementors§

Source§

impl<Eip4844: RlpEcdsaEncodableTx> TxHashRef for EthereumTxEnvelope<Eip4844>

Source§

impl<T, Sig> TxHashRef for Signed<T, Sig>
where T: TxHashable<Sig>,

Source§

impl<T: TxHashRef> TxHashRef for Recovered<T>