Enum hyper::header::common::cache_control::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 String for CacheDirective

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

impl FromStr for CacheDirective

fn from_str(s: &str) -> Option<CacheDirective>

Derived Implementations

impl Show for CacheDirective

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

impl Clone for CacheDirective

fn clone(&self) -> CacheDirective

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

impl PartialEq for CacheDirective

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

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