Struct safe_http::HeaderValue
source · [−]pub struct HeaderValue(_);
Implementations
Trait Implementations
sourceimpl Clone for HeaderValue
impl Clone for HeaderValue
sourcefn clone(&self) -> HeaderValue
fn clone(&self) -> HeaderValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HeaderValue
impl Debug for HeaderValue
sourceimpl Display for HeaderValue
impl Display for HeaderValue
sourceimpl Extend<HeaderValue> for HeaderValues
impl Extend<HeaderValue> for HeaderValues
sourcefn extend<T: IntoIterator<Item = HeaderValue>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = HeaderValue>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl From<HeaderValue> for SharedBytes
impl From<HeaderValue> for SharedBytes
sourcefn from(x: HeaderValue) -> Self
fn from(x: HeaderValue) -> Self
Performs the conversion.
sourceimpl From<HeaderValue> for Vec<u8>
impl From<HeaderValue> for Vec<u8>
sourcefn from(x: HeaderValue) -> Self
fn from(x: HeaderValue) -> Self
Performs the conversion.
sourceimpl From<HeaderValue> for HeaderValues
impl From<HeaderValue> for HeaderValues
sourcefn from(v: HeaderValue) -> Self
fn from(v: HeaderValue) -> Self
Performs the conversion.
sourceimpl FromIterator<HeaderValue> for Option<HeaderValues>
impl FromIterator<HeaderValue> for Option<HeaderValues>
sourcefn from_iter<T: IntoIterator<Item = HeaderValue>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = HeaderValue>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl Hash for HeaderValue
impl Hash for HeaderValue
sourceimpl PartialEq<HeaderValue> for HeaderValue
impl PartialEq<HeaderValue> for HeaderValue
sourcefn eq(&self, other: &HeaderValue) -> bool
fn eq(&self, other: &HeaderValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HeaderValue) -> bool
fn ne(&self, other: &HeaderValue) -> bool
This method tests for !=
.
sourceimpl PartialEq<String> for HeaderValue
impl PartialEq<String> for HeaderValue
sourceimpl PartialEq<str> for HeaderValue
impl PartialEq<str> for HeaderValue
sourceimpl TryFrom<&'static [u8]> for HeaderValue
impl TryFrom<&'static [u8]> for HeaderValue
type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
sourceimpl TryFrom<&'static str> for HeaderValue
impl TryFrom<&'static str> for HeaderValue
sourceimpl TryFrom<Arc<String>> for HeaderValue
impl TryFrom<Arc<String>> for HeaderValue
type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
sourcefn try_from(value: SharedBytes) -> Result<Self, Self::Error>
fn try_from(value: SharedBytes) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<String> for HeaderValue
impl TryFrom<String> for HeaderValue
impl Eq for HeaderValue
impl StructuralPartialEq for HeaderValue
Auto Trait Implementations
impl RefUnwindSafe for HeaderValue
impl Send for HeaderValue
impl Sync for HeaderValue
impl Unpin for HeaderValue
impl UnwindSafe for HeaderValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more