Enum trillium_caching_headers::CacheControlDirective [−][src]
#[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.
MaxAge(Duration)
Tuple Fields of MaxAge
0: Duration
MaxFresh(Duration)
Tuple Fields of MaxFresh
0: Duration
SMaxage(Duration)
Tuple Fields of SMaxage
0: Duration
StaleIfError(Duration)
Tuple Fields of StaleIfError
0: Duration
StaleWhileRevalidate(Duration)
Tuple Fields of StaleWhileRevalidate
0: Duration
UnknownDirective(String)
an enum variant that will contain any unrecognized directives
Tuple Fields of UnknownDirective
0: String
Trait Implementations
Performs the conversion.
Performs the conversion.
Creates a value from an iterator. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more