#[non_exhaustive]pub struct SipWarning { /* private fields */ }Expand description
SIP Warning header.
RFC 3261 §20.43:
Warning = "Warning" HCOLON warning-value *(COMMA warning-value)Implementations§
Source§impl SipWarning
impl SipWarning
Sourcepub fn parse(raw: &str) -> Result<Self, SipWarningError>
pub fn parse(raw: &str) -> Result<Self, SipWarningError>
Parse a Warning header value.
Sourcepub fn entries(&self) -> &[SipWarningEntry]
pub fn entries(&self) -> &[SipWarningEntry]
All warning entries.
Sourcepub fn into_entries(self) -> Vec<SipWarningEntry>
pub fn into_entries(self) -> Vec<SipWarningEntry>
Consume self and return entries as a Vec.
Trait Implementations§
Source§impl Clone for SipWarning
impl Clone for SipWarning
Source§fn clone(&self) -> SipWarning
fn clone(&self) -> SipWarning
Returns a duplicate of the value. Read more
1.0.0 · 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 SipWarning
impl Debug for SipWarning
Source§impl Display for SipWarning
impl Display for SipWarning
Source§impl FromStr for SipWarning
impl FromStr for SipWarning
Source§impl<'a> IntoIterator for &'a SipWarning
impl<'a> IntoIterator for &'a SipWarning
Source§impl IntoIterator for SipWarning
impl IntoIterator for SipWarning
Source§impl PartialEq for SipWarning
impl PartialEq for SipWarning
impl Eq for SipWarning
impl StructuralPartialEq for SipWarning
Auto Trait Implementations§
impl Freeze for SipWarning
impl RefUnwindSafe for SipWarning
impl Send for SipWarning
impl Sync for SipWarning
impl Unpin for SipWarning
impl UnsafeUnpin for SipWarning
impl UnwindSafe for SipWarning
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