#[non_exhaustive]pub struct SipVia { /* private fields */ }Expand description
Parsed SIP Via header.
Implementations§
Source§impl SipVia
impl SipVia
Sourcepub fn parse(raw: &str) -> Result<Self, SipViaError>
pub fn parse(raw: &str) -> Result<Self, SipViaError>
Parses a Via header value.
Sourcepub fn entries(&self) -> &[SipViaEntry]
pub fn entries(&self) -> &[SipViaEntry]
Returns the Via entries.
Sourcepub fn into_entries(self) -> Vec<SipViaEntry>
pub fn into_entries(self) -> Vec<SipViaEntry>
Consume self and return entries as a Vec.
Trait Implementations§
Source§impl<'a> IntoIterator for &'a SipVia
impl<'a> IntoIterator for &'a SipVia
Source§impl IntoIterator for SipVia
impl IntoIterator for SipVia
impl Eq for SipVia
impl StructuralPartialEq for SipVia
Auto Trait Implementations§
impl Freeze for SipVia
impl RefUnwindSafe for SipVia
impl Send for SipVia
impl Sync for SipVia
impl Unpin for SipVia
impl UnsafeUnpin for SipVia
impl UnwindSafe for SipVia
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