[][src]Enum rocket::http::hyper::header::Vary

pub enum Vary {

Vary header, defined in RFC7231

The "Vary" header field in a response describes what parts of a request message, aside from the method, Host header field, and request target, might influence the origin server's process for selecting and representing this response. The value consists of either a single asterisk ("*") or a list of header field names (case-insensitive).


Vary = "*" / 1#field-name

Example values


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

let mut headers = Headers::new();


// extern crate unicase;

use hyper::header::{Headers, Vary};
use unicase::UniCase;

let mut headers = Headers::new();



Any value is a match


Only the listed items are a match

Trait Implementations

impl From<Vary> for Header<'static>

impl Clone for Vary[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Vary> for Vary[src]

impl Display for Vary[src]

impl HeaderFormat for Vary[src]

impl Header for Vary[src]

impl Debug for Vary[src]

Auto Trait Implementations

impl Send for Vary

impl Sync for Vary

impl Unpin for Vary

impl UnwindSafe for Vary

impl RefUnwindSafe for Vary

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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

impl<T> HeaderClone for T where
    T: Sealed, 

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> IntoCollection<T> for T

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