pub enum HeaderValue {
Stand(&'static str),
Value(Vec<u8>),
}
Variants§
Implementations§
Source§impl HeaderValue
impl HeaderValue
pub fn from_static(s: &'static str) -> HeaderValue
pub fn from_bytes(b: &[u8]) -> HeaderValue
pub fn from_cow(b: Cow<'_, [u8]>) -> HeaderValue
pub fn bytes_len(&self) -> usize
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_string(&self) -> Option<String>
pub fn push(&mut self, value: HeaderValue)
pub fn encode<B: Bt + BtMut>(&self, buffer: &mut B) -> WebResult<usize>
pub fn contains(&self, bytes: &[u8]) -> bool
Trait Implementations§
Source§impl Clone for HeaderValue
impl Clone for HeaderValue
Source§fn clone(&self) -> HeaderValue
fn clone(&self) -> HeaderValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HeaderValue
impl Debug for HeaderValue
Source§impl Display for HeaderValue
impl Display for HeaderValue
Source§impl Hash for HeaderValue
impl Hash for HeaderValue
Source§impl PartialEq<&str> for HeaderValue
impl PartialEq<&str> for HeaderValue
Source§impl PartialEq<[u8]> for HeaderValue
impl PartialEq<[u8]> for HeaderValue
Source§impl PartialEq<HeaderValue> for &str
impl PartialEq<HeaderValue> for &str
Source§impl PartialEq<HeaderValue> for [u8]
impl PartialEq<HeaderValue> for [u8]
Source§impl PartialEq for HeaderValue
impl PartialEq for HeaderValue
Source§impl TryFrom<&'static str> for HeaderValue
impl TryFrom<&'static str> for HeaderValue
Source§impl TryFrom<String> for HeaderValue
impl TryFrom<String> for HeaderValue
Source§impl TryFrom<isize> for HeaderValue
impl TryFrom<isize> for HeaderValue
Source§impl TryFrom<usize> for HeaderValue
impl TryFrom<usize> for HeaderValue
Source§impl TryInto<String> for &HeaderValue
impl TryInto<String> for &HeaderValue
Source§impl TryInto<isize> for &HeaderValue
impl TryInto<isize> for &HeaderValue
Source§impl TryInto<usize> for &HeaderValue
impl TryInto<usize> for &HeaderValue
impl Eq for HeaderValue
Auto Trait Implementations§
impl Freeze for HeaderValue
impl RefUnwindSafe for HeaderValue
impl Send for HeaderValue
impl Sync for HeaderValue
impl Unpin for HeaderValue
impl UnwindSafe for HeaderValue
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.