pub struct CacheEntry {
pub response: Response,
pub stored_at: Instant,
pub max_age: Option<Duration>,
pub etag: Option<String>,
pub no_cache: bool,
}Expand description
Cached HTTP response entry with expiration and revalidation metadata.
Fields§
§response: Response§stored_at: Instant§max_age: Option<Duration>§etag: Option<String>§no_cache: boolImplementations§
Trait Implementations§
Source§impl Clone for CacheEntry
impl Clone for CacheEntry
Auto Trait Implementations§
impl Forget for CacheEntry
impl Freeze for CacheEntry
impl Move for CacheEntry
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnsafeUnpin for CacheEntry
impl UnwindSafe for CacheEntry
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