[][src]Struct rocket::http::hyper::header::AccessControlMaxAge

pub struct AccessControlMaxAge(pub u32);

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

Examples

use hyper::header::{Headers, AccessControlMaxAge};

let mut headers = Headers::new();
headers.set(AccessControlMaxAge(1728000u32));

Methods from Deref<Target = u32>

Trait Implementations

impl From<AccessControlMaxAge> for Header<'static>

impl PartialEq<AccessControlMaxAge> for AccessControlMaxAge
[src]

impl Deref for AccessControlMaxAge
[src]

The resulting type after dereferencing.

impl Clone for AccessControlMaxAge
[src]

Performs copy-assignment from source. Read more

impl Display for AccessControlMaxAge
[src]

impl DerefMut for AccessControlMaxAge
[src]

impl Debug for AccessControlMaxAge
[src]

impl HeaderFormat for AccessControlMaxAge
[src]

impl Header for AccessControlMaxAge
[src]

Auto Trait Implementations

impl Send for AccessControlMaxAge

impl Sync for AccessControlMaxAge

Blanket Implementations

impl<T> From for T
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> HeaderClone for T where
    T: Sealed, 
[src]

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> IntoCollection for T

impl<T, I> AsResult for T where
    I: Input,