Struct trillium_http_types::cache::Age [−][src]
pub struct Age { /* fields omitted */ }Expand description
HTTP Age header
Specifications
Examples
use http_types::Response; use http_types::cache::Age; let age = Age::from_secs(12); let mut res = Response::new(200); res.insert_header(&age, &age); let age = Age::from_headers(res)?.unwrap(); assert_eq!(age, Age::from_secs(12));
Implementations
Trait Implementations
Access the header’s name.
Access the header’s value.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Ageimpl UnwindSafe for Age