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§
source§impl<'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> Freeze for HeaderFormatter<'a, H>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more