#[non_exhaustive]pub struct SipSecurity(/* private fields */);Expand description
Parsed security mechanism header value.
Implementations§
Source§impl SipSecurity
impl SipSecurity
Sourcepub fn parse(raw: &str) -> Result<Self, SipSecurityError>
pub fn parse(raw: &str) -> Result<Self, SipSecurityError>
Parse a comma-separated security mechanism value.
Sourcepub fn entries(&self) -> &[SipSecurityMechanism]
pub fn entries(&self) -> &[SipSecurityMechanism]
The parsed entries as a slice.
Sourcepub fn into_entries(self) -> Vec<SipSecurityMechanism>
pub fn into_entries(self) -> Vec<SipSecurityMechanism>
Consume self and return entries as a Vec.
Trait Implementations§
Source§impl Clone for SipSecurity
impl Clone for SipSecurity
Source§fn clone(&self) -> SipSecurity
fn clone(&self) -> SipSecurity
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 SipSecurity
impl Debug for SipSecurity
Source§impl Display for SipSecurity
impl Display for SipSecurity
Source§impl FromStr for SipSecurity
impl FromStr for SipSecurity
Source§impl<'a> IntoIterator for &'a SipSecurity
impl<'a> IntoIterator for &'a SipSecurity
Source§impl IntoIterator for SipSecurity
impl IntoIterator for SipSecurity
Source§impl PartialEq for SipSecurity
impl PartialEq for SipSecurity
impl Eq for SipSecurity
impl StructuralPartialEq for SipSecurity
Auto Trait Implementations§
impl Freeze for SipSecurity
impl RefUnwindSafe for SipSecurity
impl Send for SipSecurity
impl Sync for SipSecurity
impl Unpin for SipSecurity
impl UnsafeUnpin for SipSecurity
impl UnwindSafe for SipSecurity
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