#[non_exhaustive]pub enum IgnoredIdentityReason {
UnexpectedScheme,
DuplicateSip,
DuplicateSips,
DuplicateTel,
SipAfterSips,
SipsAfterSip,
}Expand description
Why RFC 5876 §4.5 says a received identity value is ignored.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnexpectedScheme
The URI is not SIP, SIPS or TEL.
DuplicateSip
A SIP URI already occurred earlier in the field.
DuplicateSips
A SIPS URI already occurred earlier in the field.
DuplicateTel
A TEL URI already occurred earlier in the field.
SipAfterSips
A SIPS URI occurred earlier, so this SIP URI is an unexpected combination.
SipsAfterSip
A SIP URI occurred earlier, so this SIPS URI is an unexpected combination.
Trait Implementations§
Source§impl Clone for IgnoredIdentityReason
impl Clone for IgnoredIdentityReason
Source§fn clone(&self) -> IgnoredIdentityReason
fn clone(&self) -> IgnoredIdentityReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IgnoredIdentityReason
impl Debug for IgnoredIdentityReason
Source§impl PartialEq for IgnoredIdentityReason
impl PartialEq for IgnoredIdentityReason
Source§fn eq(&self, other: &IgnoredIdentityReason) -> bool
fn eq(&self, other: &IgnoredIdentityReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for IgnoredIdentityReason
impl Eq for IgnoredIdentityReason
impl StructuralPartialEq for IgnoredIdentityReason
Auto Trait Implementations§
impl Freeze for IgnoredIdentityReason
impl RefUnwindSafe for IgnoredIdentityReason
impl Send for IgnoredIdentityReason
impl Sync for IgnoredIdentityReason
impl Unpin for IgnoredIdentityReason
impl UnsafeUnpin for IgnoredIdentityReason
impl UnwindSafe for IgnoredIdentityReason
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