pub enum Location {
Default,
InMem,
OnDisk,
}Expand description
Advice cache location for the cache entry.
Useful when using hybrid cache.
NOTE: CacheLocation only affects the first time the entry is handle.
After it is populated, the entry may not follow the given advice.
Variants§
Default
The default location.
Prefer to store the entry in the in-memory cache with in-memory cache. And prefer to store the entry in the hybrid cache with hybrid cache.
InMem
Prefer to store the entry in the in-memory cache.
OnDisk
Prefer to store the entry on the disk cache.
Trait Implementations§
impl Copy for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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