Trait alloy_consensus::Eip2718EncodableReceipt

source ·
pub trait Eip2718EncodableReceipt: RlpEncodableReceipt + Typed2718 {
    // Required methods
    fn eip2718_encoded_length_with_bloom(&self, bloom: &Bloom) -> usize;
    fn eip2718_encode_with_bloom(&self, bloom: &Bloom, out: &mut dyn BufMut);
}
Expand description

Receipt type that knows its EIP-2718 encoding.

Main consumer of this trait is ReceiptWithBloom. It is expected that RlpEncodableReceipt implementation for this type produces network encoding whcih is used by alloy_rlp::Encodable implementation for ReceiptWithBloom.

Required Methods§

source

fn eip2718_encoded_length_with_bloom(&self, bloom: &Bloom) -> usize

EIP-2718 encoded length with the provided bloom filter.

source

fn eip2718_encode_with_bloom(&self, bloom: &Bloom, out: &mut dyn BufMut)

EIP-2718 encodes the receipt with the provided bloom filter.

Implementations on Foreign Types§

source§

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

Implementors§