Type Alias opendal::operator_futures::FutureReader

source ·
pub type FutureReader<F> = OperatorFuture<(OpRead, OpReader), Reader, F>;
Expand description

Future that generated by Operator::read_with or Operator::reader_with.

Users can add more options by public functions provided by this struct.

§Notes

(OpRead, ()) is a trick to make sure FutureReader is different from FutureRead

Aliased Type§

struct FutureReader<F> { /* private fields */ }

Implementations§

source§

impl<F: Future<Output = Result<Reader>>> FutureReader<F>

source

pub fn version(self, v: &str) -> Self

Set the version for this operation.

source

pub fn concurrent(self, concurrent: usize) -> Self

Set the concurrent read task amount.

source

pub fn chunk(self, chunk_size: usize) -> Self

Set the chunk size for this reader.

source

pub fn gap(self, gap_size: usize) -> Self

Set the gap size for this reader.