pub struct HeaderFormatter<'a, H>(pub &'a H)
where
H: HeaderFormat;
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
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
Source§impl<T> PersistentInto<Arc<Mutex<T>>> for T
impl<T> PersistentInto<Arc<Mutex<T>>> for T
Source§fn persistent_into(self) -> Arc<Mutex<T>>
fn persistent_into(self) -> Arc<Mutex<T>>
Convert
self
into a value of type T
.Source§impl<T> PersistentInto<Arc<RwLock<T>>> for T
impl<T> PersistentInto<Arc<RwLock<T>>> for T
Source§fn persistent_into(self) -> Arc<RwLock<T>>
fn persistent_into(self) -> Arc<RwLock<T>>
Convert
self
into a value of type T
.Source§impl<T> PersistentInto<Arc<T>> for T
impl<T> PersistentInto<Arc<T>> for T
Source§fn persistent_into(self) -> Arc<T>
fn persistent_into(self) -> Arc<T>
Convert
self
into a value of type T
.Source§impl<T> PersistentInto<T> for T
impl<T> PersistentInto<T> for T
Source§fn persistent_into(self) -> T
fn persistent_into(self) -> T
Convert
self
into a value of type T
.