pub struct AccessControlMaxAge(pub u32);Expand description
Access-Control-Max-Age header, part of
CORS
The Access-Control-Max-Age header indicates how long the results of a
preflight request can be cached in a preflight result cache.
§ABNF
Access-Control-Max-Age = \"Access-Control-Max-Age\" \":\" delta-seconds§Example values
- 531
§Examples
use hyper::header::{Headers, AccessControlMaxAge};
let mut headers = Headers::new();
headers.set(AccessControlMaxAge(1728000u32));Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for AccessControlMaxAge
 
impl Clone for AccessControlMaxAge
Source§fn clone(&self) -> AccessControlMaxAge
 
fn clone(&self) -> AccessControlMaxAge
Returns a duplicate 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 AccessControlMaxAge
 
impl Debug for AccessControlMaxAge
Source§impl DerefMut for AccessControlMaxAge
 
impl DerefMut for AccessControlMaxAge
Source§impl Display for AccessControlMaxAge
 
impl Display for AccessControlMaxAge
Source§impl Header for AccessControlMaxAge
 
impl Header for AccessControlMaxAge
Source§fn header_name() -> &'static str
 
fn header_name() -> &'static str
Returns the name of the header field this belongs to. Read more
Source§fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlMaxAge, Error>
 
fn parse_header(raw: &[Vec<u8>]) -> Result<AccessControlMaxAge, Error>
Parse a header from a raw stream of bytes. Read more
Source§impl HeaderFormat for AccessControlMaxAge
 
impl HeaderFormat for AccessControlMaxAge
Source§impl PartialEq for AccessControlMaxAge
 
impl PartialEq for AccessControlMaxAge
Source§impl Deref for AccessControlMaxAge
 
impl Deref for AccessControlMaxAge
impl StructuralPartialEq for AccessControlMaxAge
Auto Trait Implementations§
impl Freeze for AccessControlMaxAge
impl RefUnwindSafe for AccessControlMaxAge
impl Send for AccessControlMaxAge
impl Sync for AccessControlMaxAge
impl Unpin for AccessControlMaxAge
impl UnwindSafe for AccessControlMaxAge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more