pub enum Param {
Transport(Transport),
User(User),
Method(Method),
Ttl(Ttl),
Maddr(Maddr),
Lr,
Branch(Branch),
Received(Received),
Tag(Tag),
Expires(Expires),
Q(Q),
Other(OtherParam, Option<OtherParamValue>),
}
Expand description
This enum holds all the possible parameters found in SIP(S) URIs, and headers like From
,
To
, Contact
, Via
etc. For better safety, we should probably define different param
enums for each of those cases since, for instance, a branch
parameter should not appear
in a Contact
header, however we have it in the same enum for simplicity for now and delegate
this safety to the user.
Variants
Transport(Transport)
User(User)
Method(Method)
Ttl(Ttl)
Maddr(Maddr)
Lr
Branch(Branch)
Received(Received)
Tag(Tag)
Expires(Expires)
Q(Q)
Other(OtherParam, Option<OtherParamValue>)
Trait Implementations
impl Eq for Param
impl StructuralEq for Param
impl StructuralPartialEq for Param
Auto Trait Implementations
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnwindSafe for Param
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more