Trait FromReceiptReader

Source
pub trait FromReceiptReader {
    type Error: From<Error>;

    // Required method
    fn from_receipt_reader<B>(
        reader: B,
        num_bytes: u64,
        prev_chunk_highest_block: Option<u64>,
    ) -> impl Future<Output = Result<DecodedFileChunk<Self>, Self::Error>>
       where Self: Sized,
             B: AsyncReadExt + Unpin;
}
Expand description

Constructs a file client from a reader and decoder.

Required Associated Types§

Source

type Error: From<Error>

Error returned by file client type.

Required Methods§

Source

fn from_receipt_reader<B>( reader: B, num_bytes: u64, prev_chunk_highest_block: Option<u64>, ) -> impl Future<Output = Result<DecodedFileChunk<Self>, Self::Error>>
where Self: Sized, B: AsyncReadExt + Unpin,

Returns a file client

Implementors§

Source§

impl<D> FromReceiptReader for ReceiptFileClient<D>

Source§

type Error = <D as Decoder>::Error