Struct headers_ext::Host [−][src]
pub struct Host(_);
The Host header.
Methods
impl Host[src]
impl Hostpub fn hostname(&self) -> &str[src]
pub fn hostname(&self) -> &strGet the hostname, such as example.domain.
pub fn port(&self) -> Option<u16>[src]
pub fn port(&self) -> Option<u16>Get the optional port number.
Trait Implementations
impl Clone for Host[src]
impl Clone for Hostfn clone(&self) -> Host[src]
fn clone(&self) -> HostReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Host[src]
impl Debug for Hostfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Host[src]
impl PartialEq for Hostfn eq(&self, other: &Host) -> bool[src]
fn eq(&self, other: &Host) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Host) -> bool[src]
fn ne(&self, other: &Host) -> boolThis method tests for !=.
impl Eq for Host[src]
impl Eq for Hostimpl Hash for Host[src]
impl Hash for Hostfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl PartialOrd for Host[src]
impl PartialOrd for Hostfn partial_cmp(&self, other: &Host) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Host) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Host) -> bool[src]
fn lt(&self, other: &Host) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Host) -> bool[src]
fn le(&self, other: &Host) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Host) -> bool[src]
fn gt(&self, other: &Host) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Host) -> bool[src]
fn ge(&self, other: &Host) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Header for Host[src]
impl Header for Hostconst NAME: &'static HeaderName
NAME: &'static HeaderName = &::http::header::HOST
The name of this header.
fn decode(values: &mut Values) -> Option<Self>[src]
fn decode(values: &mut Values) -> Option<Self>Decode this type from a HeaderValue.
fn encode(&self, values: &mut ToValues)[src]
fn encode(&self, values: &mut ToValues)Encode this type to a HeaderMap. Read more
impl From<Authority> for Host[src]
impl From<Authority> for Hostimpl Display for Host[src]
impl Display for Host