Struct sig_proxy::middleware::proxy::prelude::headers::HeaderValues [−]
pub struct HeaderValues { /* fields omitted */ }
Expand description
A list of HeaderValue
s.
This always contains at least one header value.
Implementations
impl HeaderValues
impl HeaderValues
pub fn append(&mut self, other: &mut HeaderValues)
pub fn append(&mut self, other: &mut HeaderValues)
Move all values from other
into self
, leaving other
empty.
pub fn get(&self, index: usize) -> Option<&HeaderValue>
pub fn get(&self, index: usize) -> Option<&HeaderValue>
Returns a reference or a value depending on the type of index.
pub fn get_mut(&mut self, index: usize) -> Option<&mut HeaderValue>
pub fn get_mut(&mut self, index: usize) -> Option<&mut HeaderValue>
Returns a mutable reference or a value depending on the type of index.
pub fn contains(&self, value: &HeaderValue) -> bool
pub fn contains(&self, value: &HeaderValue) -> bool
Returns true
if there is a value corresponding to the specified HeaderValue
in the list,
false
otherwise.
pub fn last(&self) -> &HeaderValue
pub fn last(&self) -> &HeaderValue
Returns the last HeaderValue
.
Methods from Deref<Target = HeaderValue>
Trait Implementations
impl AsMut<HeaderValue> for HeaderValues
impl AsMut<HeaderValue> for HeaderValues
pub fn as_mut(&mut self) -> &mut HeaderValue
pub fn as_mut(&mut self) -> &mut HeaderValue
Performs the conversion.
impl AsRef<HeaderValue> for HeaderValues
impl AsRef<HeaderValue> for HeaderValues
pub fn as_ref(&self) -> &HeaderValue
pub fn as_ref(&self) -> &HeaderValue
Performs the conversion.
impl Clone for HeaderValues
impl Clone for HeaderValues
pub fn clone(&self) -> HeaderValues
pub fn clone(&self) -> HeaderValues
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for HeaderValues
impl Debug for HeaderValues
impl Deref for HeaderValues
impl Deref for HeaderValues
type Target = HeaderValue
type Target = HeaderValue
The resulting type after dereferencing.
pub fn deref(&self) -> &HeaderValue
pub fn deref(&self) -> &HeaderValue
Dereferences the value.
impl DerefMut for HeaderValues
impl DerefMut for HeaderValues
pub fn deref_mut(&mut self) -> &mut HeaderValue
pub fn deref_mut(&mut self) -> &mut HeaderValue
Mutably dereferences the value.
impl Display for HeaderValues
impl Display for HeaderValues
impl From<HeaderValue> for HeaderValues
impl From<HeaderValue> for HeaderValues
pub fn from(other: HeaderValue) -> HeaderValues
pub fn from(other: HeaderValue) -> HeaderValues
Performs the conversion.
impl From<HeaderValues> for HeaderValue
impl From<HeaderValues> for HeaderValue
pub fn from(other: HeaderValues) -> HeaderValue
pub fn from(other: HeaderValues) -> HeaderValue
Performs the conversion.
impl FromIterator<HeaderValue> for HeaderValues
impl FromIterator<HeaderValue> for HeaderValues
pub fn from_iter<I>(iter: I) -> HeaderValues where
I: IntoIterator<Item = HeaderValue>,
pub fn from_iter<I>(iter: I) -> HeaderValues where
I: IntoIterator<Item = HeaderValue>,
Creates a value from an iterator. Read more
impl<I> Index<I> for HeaderValues where
I: SliceIndex<[HeaderValue]>,
impl<I> Index<I> for HeaderValues where
I: SliceIndex<[HeaderValue]>,
type Output = <I as SliceIndex<[HeaderValue]>>::Output
type Output = <I as SliceIndex<[HeaderValue]>>::Output
The returned type after indexing.
pub fn index(&self, index: I) -> &<HeaderValues as Index<I>>::Output
pub fn index(&self, index: I) -> &<HeaderValues as Index<I>>::Output
Performs the indexing (container[index]
) operation. Read more
impl<'a> IntoIterator for &'a HeaderValues
impl<'a> IntoIterator for &'a HeaderValues
type Item = &'a HeaderValue
type Item = &'a HeaderValue
The type of the elements being iterated over.
pub fn into_iter(self) -> <&'a HeaderValues as IntoIterator>::IntoIter
pub fn into_iter(self) -> <&'a HeaderValues as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
impl<'a, '_> PartialEq<&'_ String> for HeaderValues
impl<'a, '_> PartialEq<&'_ String> for HeaderValues
impl<'a> PartialEq<&'a str> for HeaderValues
impl<'a> PartialEq<&'a str> for HeaderValues
impl<'a> PartialEq<[&'a str]> for HeaderValues
impl<'a> PartialEq<[&'a str]> for HeaderValues
impl PartialEq<String> for HeaderValues
impl PartialEq<String> for HeaderValues
impl PartialEq<str> for HeaderValues
impl PartialEq<str> for HeaderValues
impl<'a> ToHeaderValues for &'a HeaderValues
impl<'a> ToHeaderValues for &'a HeaderValues
type Iter = Cloned<Values<'a>>
type Iter = Cloned<Values<'a>>
Returned iterator over header values which this type may correspond to.
pub fn to_header_values(
&self
) -> Result<<&'a HeaderValues as ToHeaderValues>::Iter, Error>
pub fn to_header_values(
&self
) -> Result<<&'a HeaderValues as ToHeaderValues>::Iter, Error>
Converts this object to an iterator of resolved HeaderValues
.
Auto Trait Implementations
impl RefUnwindSafe for HeaderValues
impl Send for HeaderValues
impl Sync for HeaderValues
impl Unpin for HeaderValues
impl UnwindSafe for HeaderValues
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,