pub enum ForcedFreshness {
ForceExpired,
ForceMiss,
ForceFresh,
}Expand description
Indicators of which level of cache freshness logic to force apply to an asset.
For example, should an existing fresh asset be revalidated or re-retrieved altogether.
Variants§
ForceExpired
Indicates the asset should be considered stale and revalidated
ForceMiss
Indicates the asset should be considered absent and treated like a miss instead of a hit
ForceFresh
Indicates the asset should be considered fresh despite possibly being stale
Trait Implementations§
Source§impl Clone for ForcedFreshness
impl Clone for ForcedFreshness
Source§fn clone(&self) -> ForcedFreshness
fn clone(&self) -> ForcedFreshness
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 ForcedFreshness
impl Debug for ForcedFreshness
Source§impl PartialEq for ForcedFreshness
impl PartialEq for ForcedFreshness
impl Copy for ForcedFreshness
impl Eq for ForcedFreshness
impl StructuralPartialEq for ForcedFreshness
Auto Trait Implementations§
impl Freeze for ForcedFreshness
impl RefUnwindSafe for ForcedFreshness
impl Send for ForcedFreshness
impl Sync for ForcedFreshness
impl Unpin for ForcedFreshness
impl UnwindSafe for ForcedFreshness
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> 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.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.