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 StructuralPartialEq for Param
Auto Trait Implementations§
impl Freeze for Param
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnwindSafe for Param
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