pub enum CacheStatus {
Fresh(Response),
Revalidate(Response, Option<String>, Option<String>),
Miss,
}Variants§
Fresh(Response)
Response is fresh and can be used directly.
Revalidate(Response, Option<String>, Option<String>)
Response is stale but can be validated using conditional headers. (Response, ETag, Last-Modified)
Miss
Cache miss.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CacheStatus
impl !RefUnwindSafe for CacheStatus
impl Send for CacheStatus
impl !Sync for CacheStatus
impl Unpin for CacheStatus
impl UnsafeUnpin for CacheStatus
impl !UnwindSafe for CacheStatus
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