pub struct OpRead { /* private fields */ }
Expand description
Args for read
operation.
Implementations§
source§impl OpRead
impl OpRead
sourcepub fn with_range(self, range: BytesRange) -> Self
pub fn with_range(self, range: BytesRange) -> Self
Create a new OpRead with range.
sourcepub fn range(&self) -> BytesRange
pub fn range(&self) -> BytesRange
Get range from OpRead.
sourcepub fn with_total_size_hint(self, total_size_hint: u64) -> Self
pub fn with_total_size_hint(self, total_size_hint: u64) -> Self
Add total size hint for OpRead
so that our layers can reuse already
known metadata.
sourcepub fn total_size_hint(&self) -> Option<u64>
pub fn total_size_hint(&self) -> Option<u64>
Get totoal size hint from op read.