pub struct Headers(_);
Expand description
Simple NewType around Vec<Header>
that gives many helpful methods when dealing with headers
in super::Request, super::Response and super::SipMessage.
Implementations
sourceimpl Headers
impl Headers
pub fn push(&mut self, h: Header)
pub fn unique_push(&mut self, h: Header)
pub fn iter(&self) -> impl Iterator<Item = &Header>
pub fn extend(&mut self, i: Vec<Header>)
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Header>
pub fn is_empty(&self) -> bool
pub fn retain<F>(&mut self, f: F) where
F: FnMut(&Header) -> bool,
Trait Implementations
sourceimpl IntoIterator for Headers
impl IntoIterator for Headers
impl Eq for Headers
impl StructuralEq for Headers
impl StructuralPartialEq for Headers
Auto Trait Implementations
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnwindSafe for Headers
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
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more