pub enum CacheState {
Fresh,
Stale,
Expired,
}Expand description
Cache entry state
Variants§
Fresh
Entry is fresh and valid
Stale
Entry is stale but can be used while revalidating
Expired
Entry has expired and should not be used
Trait Implementations§
Source§impl Clone for CacheState
impl Clone for CacheState
Source§fn clone(&self) -> CacheState
fn clone(&self) -> CacheState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheState
impl Debug for CacheState
Source§impl PartialEq for CacheState
impl PartialEq for CacheState
impl Copy for CacheState
impl Eq for CacheState
impl StructuralPartialEq for CacheState
Auto Trait Implementations§
impl Freeze for CacheState
impl RefUnwindSafe for CacheState
impl Send for CacheState
impl Sync for CacheState
impl Unpin for CacheState
impl UnwindSafe for CacheState
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