Enum kvarn::prelude::parse::CacheControlError
source · pub enum CacheControlError {
MultipleMaxAge,
InvalidInteger,
InvalidUnit,
InvalidKeyword,
InvalidBytes,
}
Expand description
An error with parsing CacheControl
.
Variants§
MultipleMaxAge
Multiple max-age
directives were found.
There must only be one; else you can’t decide which to honour.
InvalidInteger
Could not parse integer in max-age or Kvarn cache control header.
InvalidUnit
The unit in the kvarn-cache-control
header is invalid.
For now, valid units are
s
for secondsm
for minutesh
for hoursd
for days
InvalidKeyword
The kvarn-cache-control
header is a keyword, but it is invalid.
For now, valid keywords are
none
for no caching- and
full
for endless caching.
InvalidBytes
Could not convert HeaderValue::to_str
.
Trait Implementations§
source§impl Clone for CacheControlError
impl Clone for CacheControlError
source§fn clone(&self) -> CacheControlError
fn clone(&self) -> CacheControlError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CacheControlError
impl Debug for CacheControlError
source§impl PartialEq<CacheControlError> for CacheControlError
impl PartialEq<CacheControlError> for CacheControlError
source§fn eq(&self, other: &CacheControlError) -> bool
fn eq(&self, other: &CacheControlError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CacheControlError
impl StructuralEq for CacheControlError
impl StructuralPartialEq for CacheControlError
Auto Trait Implementations§
impl RefUnwindSafe for CacheControlError
impl Send for CacheControlError
impl Sync for CacheControlError
impl Unpin for CacheControlError
impl UnwindSafe for CacheControlError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more