#[non_exhaustive]pub struct SipTargetDialog { /* private fields */ }Expand description
A parsed Target-Dialog header value (RFC 4538 §7).
Identifies an existing dialog: Call-ID plus the mandatory local-tag
and remote-tag, both from the perspective of the request recipient.
Implementations§
Source§impl SipTargetDialog
impl SipTargetDialog
Sourcepub fn parse(raw: &str) -> Result<Self, SipTargetDialogError>
pub fn parse(raw: &str) -> Result<Self, SipTargetDialogError>
Parse a wire-form header value: callid;local-tag=x;remote-tag=y.
Sourcepub fn parse_uri_header(raw: &str) -> Result<Self, SipTargetDialogError>
pub fn parse_uri_header(raw: &str) -> Result<Self, SipTargetDialogError>
Parse the percent-encoded framing found in a URI header,
e.g. callid%40host%3Blocal-tag%3Dx%3Bremote-tag%3Dy.
Accepts the canonicalised value returned by
sip_uri::SipUri::header; Display re-encodes to
that same canonical form (uppercase hex).
Sourcepub fn remote_tag(&self) -> &str
pub fn remote_tag(&self) -> &str
The mandatory remote-tag value.
Trait Implementations§
Source§impl Clone for SipTargetDialog
impl Clone for SipTargetDialog
Source§fn clone(&self) -> SipTargetDialog
fn clone(&self) -> SipTargetDialog
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 SipTargetDialog
impl Debug for SipTargetDialog
Source§impl Display for SipTargetDialog
impl Display for SipTargetDialog
impl Eq for SipTargetDialog
Source§impl FromStr for SipTargetDialog
impl FromStr for SipTargetDialog
Source§impl PartialEq for SipTargetDialog
impl PartialEq for SipTargetDialog
impl StructuralPartialEq for SipTargetDialog
Auto Trait Implementations§
impl Freeze for SipTargetDialog
impl RefUnwindSafe for SipTargetDialog
impl Send for SipTargetDialog
impl Sync for SipTargetDialog
impl Unpin for SipTargetDialog
impl UnsafeUnpin for SipTargetDialog
impl UnwindSafe for SipTargetDialog
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