#[non_exhaustive]pub enum Cacheable {
No,
Guests {
max_age: u32,
},
}Expand description
Whether a cache in front of web-net may keep this reply for guests.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
No
Do not keep it.
Guests
Keep it for guests’ GET and HEAD of the same target, this long.
Said only when the route’s policy allows it, the request was a
guest’s GET or HEAD, the status is 200, and the reply sets no
cookie and varies on nothing but Accept-Encoding.
Trait Implementations§
impl Copy for Cacheable
impl Eq for Cacheable
impl StructuralPartialEq for Cacheable
Auto Trait Implementations§
impl Forget for Cacheable
impl Freeze for Cacheable
impl RefUnwindSafe for Cacheable
impl Send for Cacheable
impl Sync for Cacheable
impl Unpin for Cacheable
impl UnsafeUnpin for Cacheable
impl UnwindSafe for Cacheable
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