pub struct HeaderValue(/* private fields */);Implementations§
Source§impl HeaderValue
impl HeaderValue
pub const fn from_static(b: &'static [u8]) -> HeaderValue
pub fn as_slice(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl AsRef<[u8]> for HeaderValue
impl AsRef<[u8]> for HeaderValue
Source§impl Clone for HeaderValue
impl Clone for HeaderValue
Source§fn clone(&self) -> HeaderValue
fn clone(&self) -> HeaderValue
Returns a duplicate 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 Extend<HeaderValue> for HeaderValues
impl Extend<HeaderValue> for HeaderValues
Source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = HeaderValue>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = HeaderValue>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<HeaderValue> for HeaderValues
impl From<HeaderValue> for HeaderValues
Source§fn from(v: HeaderValue) -> HeaderValues
fn from(v: HeaderValue) -> HeaderValues
Converts to this type from the input type.
Source§impl Hash for HeaderValue
impl Hash for HeaderValue
Source§impl<T> PartialEq<&T> for HeaderValue
impl<T> PartialEq<&T> for HeaderValue
Source§impl PartialEq<[u8]> for HeaderValue
impl PartialEq<[u8]> for HeaderValue
Source§impl PartialEq<String> for HeaderValue
impl PartialEq<String> for HeaderValue
Source§impl PartialEq<str> for HeaderValue
impl PartialEq<str> for HeaderValue
Source§impl PartialEq for HeaderValue
impl PartialEq for HeaderValue
Source§impl TryFrom<&'static [u8]> for HeaderValue
impl TryFrom<&'static [u8]> for HeaderValue
Source§type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
Source§fn try_from(
value: &'static [u8],
) -> Result<HeaderValue, <HeaderValue as TryFrom<&'static [u8]>>::Error>
fn try_from( value: &'static [u8], ) -> Result<HeaderValue, <HeaderValue as TryFrom<&'static [u8]>>::Error>
Performs the conversion.
Source§impl TryFrom<&'static str> for HeaderValue
impl TryFrom<&'static str> for HeaderValue
Source§type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
Source§fn try_from(
value: &'static str,
) -> Result<HeaderValue, <HeaderValue as TryFrom<&'static str>>::Error>
fn try_from( value: &'static str, ) -> Result<HeaderValue, <HeaderValue as TryFrom<&'static str>>::Error>
Performs the conversion.
Source§type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
Source§fn try_from(
value: SharedBytes,
) -> Result<HeaderValue, <HeaderValue as TryFrom<SharedBytes>>::Error>
fn try_from( value: SharedBytes, ) -> Result<HeaderValue, <HeaderValue as TryFrom<SharedBytes>>::Error>
Performs the conversion.
Source§type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
Source§fn try_from(
value: SharedStr,
) -> Result<HeaderValue, <HeaderValue as TryFrom<SharedStr>>::Error>
fn try_from( value: SharedStr, ) -> Result<HeaderValue, <HeaderValue as TryFrom<SharedStr>>::Error>
Performs the conversion.
Source§impl TryFrom<String> for HeaderValue
impl TryFrom<String> for HeaderValue
Source§type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<HeaderValue, <HeaderValue as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<HeaderValue, <HeaderValue as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for HeaderValue
impl StructuralPartialEq 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