pub trait FromReader {
type Error: From<Error>;
type Output;
// Required method
fn build<R>(
&self,
reader: R,
num_bytes: u64,
) -> impl Future<Output = Result<DecodedFileChunk<Self::Output>, Self::Error>>
where Self: Sized,
R: AsyncReadExt + Unpin;
}
Expand description
Constructs a file client from a reader.