Trait FromReader

Source
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.

Required Associated Types§

Source

type Error: From<Error>

Error returned by file client type.

Source

type Output

Output returned by file client type.

Required Methods§

Source

fn build<R>( &self, reader: R, num_bytes: u64, ) -> impl Future<Output = Result<DecodedFileChunk<Self::Output>, Self::Error>>
where Self: Sized, R: AsyncReadExt + Unpin,

Returns a file client

Implementors§