pub struct LoopbackResignation<'a> { /* private fields */ }Expand description
A loopback leg that resigned from a call which is still up.
mod_loopback takes itself out of the path once it can connect the two real
channels directly, so the leg emits CHANNEL_HANGUP_COMPLETE for a call
that is alive and connected on other_uuid(). Track
that channel instead of treating the hangup as a teardown.
Obtained from
HeaderLookup::loopback_resignation(),
which returns Some whenever the marker variable is present regardless of
its value – mod_loopback writes a different token per path, and a third
one would still be a resignation. cause() asks the separate
question of which path it was.
Implementations§
Source§impl<'a> LoopbackResignation<'a>
impl<'a> LoopbackResignation<'a>
Sourcepub fn cause(
&self,
) -> Result<LoopbackHangupCause, ParseLoopbackHangupCauseError>
pub fn cause( &self, ) -> Result<LoopbackHangupCause, ParseLoopbackHangupCauseError>
Which path resigned.
Err means mod_loopback used a path this crate does not know yet –
worth logging, but the resignation itself still stands.
Sourcepub fn other_uuid(&self) -> Option<&'a str>
pub fn other_uuid(&self) -> Option<&'a str>
The real channel that outlives the loopback leg, from
loopback_bowout_other_uuid.
Trait Implementations§
Source§impl<'a> Clone for LoopbackResignation<'a>
impl<'a> Clone for LoopbackResignation<'a>
Source§fn clone(&self) -> LoopbackResignation<'a>
fn clone(&self) -> LoopbackResignation<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<'a> Copy for LoopbackResignation<'a>
Source§impl<'a> Debug for LoopbackResignation<'a>
impl<'a> Debug for LoopbackResignation<'a>
impl<'a> Eq for LoopbackResignation<'a>
Source§impl<'a> PartialEq for LoopbackResignation<'a>
impl<'a> PartialEq for LoopbackResignation<'a>
impl<'a> StructuralPartialEq for LoopbackResignation<'a>
Auto Trait Implementations§
impl<'a> Freeze for LoopbackResignation<'a>
impl<'a> RefUnwindSafe for LoopbackResignation<'a>
impl<'a> Send for LoopbackResignation<'a>
impl<'a> Sync for LoopbackResignation<'a>
impl<'a> Unpin for LoopbackResignation<'a>
impl<'a> UnsafeUnpin for LoopbackResignation<'a>
impl<'a> UnwindSafe for LoopbackResignation<'a>
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
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
key and return true if they are equal.