pub struct Headers { /* private fields */ }Implementations§
Source§impl Headers
impl Headers
pub fn new() -> Self
pub fn with_capacity(buf: usize, headers: usize) -> Self
pub fn from_pairs(pairs: &[(&str, &str)]) -> Self
pub fn iter(&self) -> impl Iterator<Item = (&str, &str)> + '_
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push(&mut self, key: &str, value: &str)
Trait Implementations§
impl Eq for Headers
Auto Trait Implementations§
impl Freeze for Headers
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnsafeUnpin for Headers
impl UnwindSafe for Headers
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