Type Alias opendal::operator_futures::FutureRead

source ·
pub type FutureRead<F> = OperatorFuture<(OpRead, OpReader), Buffer, 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.

Aliased Type§

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

Implementations§

source§

impl<F: Future<Output = Result<Buffer>>> FutureRead<F>

source

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

Set the If-Match for this operation.

source

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

Set the If-None-Match for this operation.

source

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

Set the version for this operation.

source

pub fn executor(self, executor: Executor) -> Self

Set the executor for this operation.

source

pub fn range(self, range: impl RangeBounds<u64>) -> Self

Set the range header 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 operation.