#[non_exhaustive]pub enum CarriedHeader {
Verbatim(SipHeader),
Derived(SipHeader),
}Expand description
Relationship between a SofiaVariable and the SIP header behind it.
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.
Verbatim(SipHeader)
The variable holds the header’s field-value verbatim.
Derived(SipHeader)
The variable holds a field mod_sofia parsed out of the header. Lossy: the header is the source of truth and the parts cannot rebuild it.
Trait Implementations§
Source§impl Clone for CarriedHeader
impl Clone for CarriedHeader
Source§fn clone(&self) -> CarriedHeader
fn clone(&self) -> CarriedHeader
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 moreimpl Copy for CarriedHeader
Source§impl Debug for CarriedHeader
impl Debug for CarriedHeader
impl Eq for CarriedHeader
Source§impl Hash for CarriedHeader
impl Hash for CarriedHeader
Source§impl PartialEq for CarriedHeader
impl PartialEq for CarriedHeader
impl StructuralPartialEq for CarriedHeader
Auto Trait Implementations§
impl Freeze for CarriedHeader
impl RefUnwindSafe for CarriedHeader
impl Send for CarriedHeader
impl Sync for CarriedHeader
impl Unpin for CarriedHeader
impl UnsafeUnpin for CarriedHeader
impl UnwindSafe for CarriedHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.