pub enum CacheAction {
Fetch,
UseCached,
Revalidate {
headers: ConditionalHeaders,
},
}Expand description
Result of checking cache freshness.
Variants§
Fetch
No cache exists, fetch fresh.
UseCached
Cache is fresh, use it directly.
Revalidate
Cache is stale, revalidate with conditional headers.
Fields
§
headers: ConditionalHeadersHeaders to send for conditional GET.
Trait Implementations§
Source§impl Clone for CacheAction
impl Clone for CacheAction
Source§fn clone(&self) -> CacheAction
fn clone(&self) -> CacheAction
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 CacheAction
impl Debug for CacheAction
Auto Trait Implementations§
impl Freeze for CacheAction
impl RefUnwindSafe for CacheAction
impl Send for CacheAction
impl Sync for CacheAction
impl Unpin for CacheAction
impl UnwindSafe for CacheAction
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