Struct hyper::header::Etag [-] [+] [src]

pub struct Etag(pub EntityTag);

The Etag header.

An Etag consists of a string enclosed by two literal double quotes. Preceding the first double quote is an optional weakness indicator, which always looks like this: W/ See also: https://tools.ietf.org/html/rfc7232#section-2.3

Trait Implementations

impl Deref for Etag

type Target = EntityTag

fn deref<'a>(&'a self) -> &'a EntityTag

impl DerefMut for Etag

fn deref_mut<'a>(&'a mut self) -> &'a mut EntityTag

impl Header for Etag

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<Etag>

impl HeaderFormat for Etag

fn fmt_header(&self, fmt: &mut Formatter) -> Result

impl Deref for Etag

type Target = EntityTag

fn deref<'a>(&'a self) -> &'a EntityTag

impl DerefMut for Etag

fn deref_mut<'a>(&'a mut self) -> &'a mut EntityTag

impl Header for Etag

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<Etag>

impl HeaderFormat for Etag

fn fmt_header(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Debug for Etag

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Etag

fn eq(&self, __arg_0: &Etag) -> bool

fn ne(&self, __arg_0: &Etag) -> bool

impl Clone for Etag

fn clone(&self) -> Etag

fn clone_from(&mut self, source: &Self)

impl Debug for Etag

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Etag

fn eq(&self, __arg_0: &Etag) -> bool

fn ne(&self, __arg_0: &Etag) -> bool

impl Clone for Etag

fn clone(&self) -> Etag

fn clone_from(&mut self, source: &Self)