pub enum CacheOption {
Eager,
Lazy,
}Expand description
How a Store populates its in-memory map from its storage.
Variants§
Eager
Scan everything at open. Reads are complete: a miss is a miss and never queries the storage.
Lazy
Fault entries in from the storage on first access. Right when the values are large enough that loading all of them eagerly is wasteful, typically compilation artifacts.
Trait Implementations§
Source§impl Clone for CacheOption
impl Clone for CacheOption
Source§fn clone(&self) -> CacheOption
fn clone(&self) -> CacheOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CacheOption
Source§impl Debug for CacheOption
impl Debug for CacheOption
Source§impl Default for CacheOption
impl Default for CacheOption
Source§fn default() -> CacheOption
fn default() -> CacheOption
Returns the “default value” for a type. Read more
impl Eq for CacheOption
Source§impl PartialEq for CacheOption
impl PartialEq for CacheOption
impl StructuralPartialEq for CacheOption
Auto Trait Implementations§
impl Freeze for CacheOption
impl RefUnwindSafe for CacheOption
impl Send for CacheOption
impl Sync for CacheOption
impl Unpin for CacheOption
impl UnsafeUnpin for CacheOption
impl UnwindSafe for CacheOption
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.