reth_primitives_traits::receipt

Trait Receipt

Source
pub trait Receipt:
    Send
    + Sync
    + Unpin
    + Clone
    + Default
    + Debug
    + TxReceipt
    + Encodable
    + Decodable
    + Serialize
    + for<'de> Deserialize<'de> {
    // Required methods
    fn tx_type(&self) -> u8;
    fn receipts_root(receipts: &[&Self]) -> B256;
}
Expand description

Abstraction of a receipt.

Required Methods§

Source

fn tx_type(&self) -> u8

Returns transaction type.

Source

fn receipts_root(receipts: &[&Self]) -> B256

Calculates the receipts root of the given receipts.

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§