#[non_exhaustive]
pub enum CacheControlDirective {
}
Expand description
An enum representation of the
Cache-Control
directives.
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.
Immutable
MaxAge(Duration)
MaxFresh(Duration)
MaxStale(Option<Duration>)
MustRevalidate
NoCache
NoStore
NoTransform
OnlyIfCached
Private
ProxyRevalidate
Public
SMaxage(Duration)
StaleIfError(Duration)
StaleWhileRevalidate(Duration)
UnknownDirective(String)
an enum variant that will contain any unrecognized directives
Trait Implementations
sourceimpl Clone for CacheControlDirective
impl Clone for CacheControlDirective
sourcefn clone(&self) -> CacheControlDirective
fn clone(&self) -> CacheControlDirective
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CacheControlDirective
impl Debug for CacheControlDirective
sourceimpl From<CacheControlDirective> for CacheControlHeader
impl From<CacheControlDirective> for CacheControlHeader
sourcefn from(directive: CacheControlDirective) -> Self
fn from(directive: CacheControlDirective) -> Self
Converts to this type from the input type.
sourceimpl From<CacheControlDirective> for HeaderValues
impl From<CacheControlDirective> for HeaderValues
sourcefn from(ccd: CacheControlDirective) -> HeaderValues
fn from(ccd: CacheControlDirective) -> HeaderValues
Converts to this type from the input type.
sourceimpl FromIterator<CacheControlDirective> for CacheControlHeader
impl FromIterator<CacheControlDirective> for CacheControlHeader
sourcefn from_iter<T: IntoIterator<Item = CacheControlDirective>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = CacheControlDirective>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl PartialEq<CacheControlDirective> for CacheControlDirective
impl PartialEq<CacheControlDirective> for CacheControlDirective
sourcefn eq(&self, other: &CacheControlDirective) -> bool
fn eq(&self, other: &CacheControlDirective) -> bool
impl Eq for CacheControlDirective
impl StructuralEq for CacheControlDirective
impl StructuralPartialEq for CacheControlDirective
Auto Trait Implementations
impl RefUnwindSafe for CacheControlDirective
impl Send for CacheControlDirective
impl Sync for CacheControlDirective
impl Unpin for CacheControlDirective
impl UnwindSafe for CacheControlDirective
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more