pub enum ReadMode {
Auto,
Sequential,
Selective,
}Expand description
How a read with filters reads the blobs it may skip. Reads without filters always read whole blobs, one after another.
Variants§
Auto
Reads only the start of a large blob while most recent blocks are skipped, and whole blobs otherwise: skipped blocks cost little reading, without many small reads when few are skipped. Blobs under 512 KiB are always read whole.
Sequential
Always reads whole blobs, in large reads one after another: fewest reads, for storage where each read is slow to start, such as a network volume or a spinning disk. Filters still skip decoding.
Selective
Reads only the start of every blob, and the rest only if its block is kept: least data, for a fast local disk when the filters skip most of a file with large blobs.
Trait Implementations§
impl Copy for ReadMode
impl Eq for ReadMode
impl StructuralPartialEq for ReadMode
Auto Trait Implementations§
impl Forget for ReadMode
impl Freeze for ReadMode
impl Move for ReadMode
impl RefUnwindSafe for ReadMode
impl Send for ReadMode
impl Sync for ReadMode
impl Unpin for ReadMode
impl UnsafeUnpin for ReadMode
impl UnwindSafe for ReadMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more