#[non_exhaustive]pub enum ContactValue {
Wildcard,
Addr(Box<SipHeaderAddr>),
}Expand description
A single Contact header value: either the * wildcard or an address.
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.
Wildcard
The * wildcard (RFC 3261 §10.2.2, used in REGISTER).
Addr(Box<SipHeaderAddr>)
A name-addr or addr-spec with optional contact parameters.
Trait Implementations§
Source§impl Clone for ContactValue
impl Clone for ContactValue
Source§fn clone(&self) -> ContactValue
fn clone(&self) -> ContactValue
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 ContactValue
impl Debug for ContactValue
Source§impl Display for ContactValue
impl Display for ContactValue
Source§impl PartialEq for ContactValue
impl PartialEq for ContactValue
impl Eq for ContactValue
impl StructuralPartialEq for ContactValue
Auto Trait Implementations§
impl Freeze for ContactValue
impl RefUnwindSafe for ContactValue
impl Send for ContactValue
impl Sync for ContactValue
impl Unpin for ContactValue
impl UnsafeUnpin for ContactValue
impl UnwindSafe for ContactValue
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