pub enum ResponseCachePolicy {
PrivateNoStore,
HandlerOwned,
}Expand description
Whether the HTTP layers add a default Cache-Control header to responses.
Variants§
PrivateNoStore
Adds Cache-Control: private, no-store to every response that does not
already carry a Cache-Control header.
HandlerOwned
Leaves Cache-Control entirely to handlers and outer layers.
Trait Implementations§
Source§impl Clone for ResponseCachePolicy
impl Clone for ResponseCachePolicy
impl Copy for ResponseCachePolicy
Source§impl Debug for ResponseCachePolicy
impl Debug for ResponseCachePolicy
Source§impl Default for ResponseCachePolicy
impl Default for ResponseCachePolicy
impl Eq for ResponseCachePolicy
Source§impl PartialEq for ResponseCachePolicy
impl PartialEq for ResponseCachePolicy
impl StructuralPartialEq for ResponseCachePolicy
Auto Trait Implementations§
impl Freeze for ResponseCachePolicy
impl RefUnwindSafe for ResponseCachePolicy
impl Send for ResponseCachePolicy
impl Sync for ResponseCachePolicy
impl Unpin for ResponseCachePolicy
impl UnsafeUnpin for ResponseCachePolicy
impl UnwindSafe for ResponseCachePolicy
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.