pub struct HeaderMapPlan { /* private fields */ }Expand description
A collection of response headers.
Implementations§
Source§impl HeaderMapPlan
impl HeaderMapPlan
pub fn new() -> Self
pub fn push(&mut self, name: impl Into<String>, value: impl Into<String>)
pub fn get(&self, name: &str) -> Option<&str>
pub fn contains(&self, name: &str) -> bool
pub fn iter(&self) -> impl Iterator<Item = &ResponseHeader>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for HeaderMapPlan
impl Clone for HeaderMapPlan
Source§fn clone(&self) -> HeaderMapPlan
fn clone(&self) -> HeaderMapPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HeaderMapPlan
impl Debug for HeaderMapPlan
Source§impl Default for HeaderMapPlan
impl Default for HeaderMapPlan
Source§fn default() -> HeaderMapPlan
fn default() -> HeaderMapPlan
Returns the “default value” for a type. Read more
impl Eq for HeaderMapPlan
Source§impl PartialEq for HeaderMapPlan
impl PartialEq for HeaderMapPlan
impl StructuralPartialEq for HeaderMapPlan
Auto Trait Implementations§
impl Freeze for HeaderMapPlan
impl RefUnwindSafe for HeaderMapPlan
impl Send for HeaderMapPlan
impl Sync for HeaderMapPlan
impl Unpin for HeaderMapPlan
impl UnsafeUnpin for HeaderMapPlan
impl UnwindSafe for HeaderMapPlan
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