pub enum HeaderString {
Str(String),
Bytes(Vec<u8>),
}Expand description
A string of the header: text if it is ASCII, otherwise the bytes, as
sstruct leaves them.
Variants§
Trait Implementations§
Source§impl Clone for HeaderString
impl Clone for HeaderString
Source§impl Debug for HeaderString
impl Debug for HeaderString
Source§impl Display for HeaderString
impl Display for HeaderString
impl Eq for HeaderString
Source§impl PartialEq for HeaderString
impl PartialEq for HeaderString
impl StructuralPartialEq for HeaderString
Auto Trait Implementations§
impl Forget for HeaderString
impl Freeze for HeaderString
impl Move for HeaderString
impl RefUnwindSafe for HeaderString
impl Send for HeaderStringwhere
RawVecInner: Send,
impl Sync for HeaderStringwhere
RawVecInner: Sync,
impl Unpin for HeaderString
impl UnsafeUnpin for HeaderString
impl UnwindSafe for HeaderStringwhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.