Struct websocket::header::HeaderFormatter [−][src]
👎 Deprecated:
The semantics of formatting a HeaderFormat directly are not clear
A wrapper around any Header with a Display impl that calls fmt_header.
This can be used like so: format!("{}", HeaderFormatter(&header))
to
get the ‘value string’ representation of this Header.
Note: This may not necessarily be the value written to stream, such as with the SetCookie header.
Trait Implementations
impl<'a, H> Debug for HeaderFormatter<'a, H> where
H: HeaderFormat,
[src]
H: HeaderFormat,
impl<'a, H> Display for HeaderFormatter<'a, H> where
H: HeaderFormat,
[src]
H: HeaderFormat,
Auto Trait Implementations
impl<'a, H> RefUnwindSafe for HeaderFormatter<'a, H> where
H: RefUnwindSafe,
H: RefUnwindSafe,
impl<'a, H> Send for HeaderFormatter<'a, H>
impl<'a, H> Sync for HeaderFormatter<'a, H>
impl<'a, H> Unpin for HeaderFormatter<'a, H>
impl<'a, H> UnwindSafe for HeaderFormatter<'a, H> where
H: RefUnwindSafe,
H: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,