pub struct OpReader { /* private fields */ }Expand description
Arguments for reader operation.
Implementations§
Source§impl OpReader
impl OpReader
Sourcepub fn with_concurrent(self, concurrent: usize) -> Self
pub fn with_concurrent(self, concurrent: usize) -> Self
Set the number of concurrent requests the reader can send.
Sourcepub fn concurrent(&self) -> usize
pub fn concurrent(&self) -> usize
Return the number of concurrent requests.
Sourcepub fn with_chunk(self, chunk: usize) -> Self
pub fn with_chunk(self, chunk: usize) -> Self
Set the request chunk size.
Sourcepub fn with_gap(self, gap: usize) -> Self
pub fn with_gap(self, gap: usize) -> Self
Set the gap size.
Set to 0 to disable merging ranges separated by a gap. Overlapping or
adjacent ranges are still merged.
Sourcepub fn with_prefetch(self, prefetch: usize) -> Self
pub fn with_prefetch(self, prefetch: usize) -> Self
Set the number of prefetch requests.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpReader
impl RefUnwindSafe for OpReader
impl Send for OpReader
impl Sync for OpReader
impl Unpin for OpReader
impl UnsafeUnpin for OpReader
impl UnwindSafe for OpReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more