[−][src]Struct websocket::header::HeaderView
Returned with the HeadersItems iterator.
Methods
impl<'a> HeaderView<'a>[src]
impl<'a> HeaderView<'a>pub fn is<H>(&self) -> bool where
H: Header, [src]
pub fn is<H>(&self) -> bool where
H: Header, Check if a HeaderView is a certain Header.
pub fn name(&self) -> &'a str[src]
pub fn name(&self) -> &'a strGet the Header name as a slice.
pub fn value<H>(&self) -> Option<&'a H> where
H: Header + HeaderFormat, [src]
pub fn value<H>(&self) -> Option<&'a H> where
H: Header + HeaderFormat, Cast the value to a certain Header type.
pub fn value_string(&self) -> String[src]
pub fn value_string(&self) -> StringGet just the header value as a String.
This will join multiple values of this header with a ,.
Warning: This may not be the format that should be used to send a Request or Response.
Trait Implementations
impl<'a> Debug for HeaderView<'a>[src]
impl<'a> Debug for HeaderView<'a>fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'a> FromIterator<HeaderView<'a>> for Headers[src]
impl<'a> FromIterator<HeaderView<'a>> for Headersfn from_iter<I>(iter: I) -> Headers where
I: IntoIterator<Item = HeaderView<'a>>, [src]
fn from_iter<I>(iter: I) -> Headers where
I: IntoIterator<Item = HeaderView<'a>>, Creates a value from an iterator. Read more
impl<'a> Display for HeaderView<'a>[src]
impl<'a> Display for HeaderView<'a>fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<'a> Extend<HeaderView<'a>> for Headers[src]
impl<'a> Extend<HeaderView<'a>> for Headersfn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = HeaderView<'a>>, [src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = HeaderView<'a>>, Extends a collection with the contents of an iterator. Read more
Auto Trait Implementations
impl<'a> !Send for HeaderView<'a>
impl<'a> !Send for HeaderView<'a>impl<'a> !Sync for HeaderView<'a>
impl<'a> !Sync for HeaderView<'a>Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> Typeable for T where
T: Any, [src]
impl<T> Typeable for T where
T: Any, impl<T> Erased for T[src]
impl<T> Erased for T