Enum edge::header::CacheDirective [] [src]

pub enum CacheDirective {
    NoCache,
    NoStore,
    NoTransform,
    OnlyIfCached,
    MaxAge(u32),
    MaxStale(u32),
    MinFresh(u32),
    MustRevalidate,
    Public,
    Private,
    ProxyRevalidate,
    SMaxAge(u32),
    Extension(String, Option<String>),
}

CacheControl contains a list of these directives.

Variants

NoCache

"no-cache"

NoStore

"no-store"

NoTransform

"no-transform"

OnlyIfCached

"only-if-cached"

MaxAge

"max-age=delta"

MaxStale

"max-stale=delta"

MinFresh

"min-fresh=delta"

MustRevalidate

"must-revalidate"

Public

"public"

Private

"private"

ProxyRevalidate

"proxy-revalidate"

SMaxAge

"s-maxage=delta"

Extension

Extension directives. Optionally include an argument.

Trait Implementations

impl Display for CacheDirective

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl FromStr for CacheDirective

type Err = Option<u32::Err>

fn from_str(s: &str) -> Result<CacheDirective, Option<u32::Err>>

Derived Implementations

impl Debug for CacheDirective

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl Clone for CacheDirective

fn clone(&self) -> CacheDirective

1.0.0fn clone_from(&mut self, source: &Self)

impl PartialEq<CacheDirective> for CacheDirective

fn eq(&self, __arg_0: &CacheDirective) -> bool

fn ne(&self, __arg_0: &CacheDirective) -> bool