pub struct DecodedCache { /* private fields */ }Expand description
Parsed index heads, partitions, segment directories, blocks and decoded
segments, shared by every handle given it with
Namespace::with_decoded_cache.
A hit costs no store call and is not charged to the read budget; a miss is
read and charged as it would be without the cache. Only the query path uses
it: index, compact, gc, inspect and recover never do. Entries are
keyed by store as well as path, so one cache can serve handles over several
stores.
Implementations§
Source§impl DecodedCache
impl DecodedCache
Sourcepub fn new(options: DecodedCacheOptions) -> Arc<Self> ⓘ
pub fn new(options: DecodedCacheOptions) -> Arc<Self> ⓘ
An empty cache.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DecodedCache
impl RefUnwindSafe for DecodedCache
impl Send for DecodedCache
impl Sync for DecodedCache
impl Unpin for DecodedCache
impl UnsafeUnpin for DecodedCache
impl UnwindSafe for DecodedCache
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