Trait Eip2718DecodableReceipt

Source
pub trait Eip2718DecodableReceipt: Sized {
    // Required methods
    fn typed_decode_with_bloom(
        ty: u8,
        buf: &mut &[u8],
    ) -> Eip2718Result<ReceiptWithBloom<Self>>;
    fn fallback_decode_with_bloom(
        buf: &mut &[u8],
    ) -> Eip2718Result<ReceiptWithBloom<Self>>;
}
Expand description

Receipt type that knows how to decode itself along with bloom from EIP-2718 format.

This is used to support alloy_eips::eip2718::Decodable2718 implementation for ReceiptWithBloom.

Required Methods§

Source

fn typed_decode_with_bloom( ty: u8, buf: &mut &[u8], ) -> Eip2718Result<ReceiptWithBloom<Self>>

EIP-2718 decodes the receipt and bloom from the buffer.

Source

fn fallback_decode_with_bloom( buf: &mut &[u8], ) -> Eip2718Result<ReceiptWithBloom<Self>>

EIP-2718 decodes the receipt and bloom from the buffer.

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§