Struct websocket::header::HeaderFormatter
source · [−]pub struct HeaderFormatter<'a, H>(pub &'a H)
where
H: HeaderFormat;
👎 Deprecated:
The semantics of formatting a HeaderFormat directly are not clear
Expand description
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.
Tuple Fields
0: &'a H
👎 Deprecated:
The semantics of formatting a HeaderFormat directly are not clear
Trait Implementations
sourceimpl<'a, H> Debug for HeaderFormatter<'a, H> where
H: HeaderFormat,
impl<'a, H> Debug for HeaderFormatter<'a, H> where
H: HeaderFormat,
Auto Trait Implementations
impl<'a, H> RefUnwindSafe for HeaderFormatter<'a, H> where
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,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more