pub struct FileRangeSource { /* private fields */ }Expand description
A file-backed ExpertSource: each expert is one contiguous
(offset, len) byte range in a single file, read with positional
reads (pread-style on unix, so concurrent misses never contend on
a shared seek cursor). This is the portable buffered-I/O default
the storage design starts from; O_DIRECT/F_NOCACHE/io_uring
variants are future work behind the same trait and must produce
identical bytes.
Implementations§
Trait Implementations§
Source§impl ExpertSource for FileRangeSource
impl ExpertSource for FileRangeSource
Auto Trait Implementations§
impl Freeze for FileRangeSource
impl RefUnwindSafe for FileRangeSource
impl Send for FileRangeSource
impl Sync for FileRangeSource
impl Unpin for FileRangeSource
impl UnsafeUnpin for FileRangeSource
impl UnwindSafe for FileRangeSource
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> 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