pub trait FromReceiptReader<D> {
type Error: From<Error>;
// Required methods
fn decoder() -> D;
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§
Required Methods§
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.