pub struct LoopbackChannelName<'a> { /* private fields */ }Expand description
Borrowed view of a parsed loopback channel name. No allocation.
mod_loopback names its pair loopback/<extension>-a and -b, from the
destination with the /context/dialplan tail stripped and an app= form
reduced to the bare application token. Some only for names carrying a leg
suffix; other drivers return None.
This is the only field that answers whether a loopback leg emitted an event.
The execute-time resignation copies every channel variable onto the real
channel that continues the call and clones the resigning leg’s caller
profile onto it, so is_loopback, loopback_leg and every Caller-* header
– Caller-Channel-Name included – then describe a channel that is gone.
Feed this parser
HeaderLookup::channel_name(), which
reads Channel-Name, and nothing else. Mechanics are in
docs/loopback-bowout.md.
A name is what a channel calls itself, not proof of its driver: a SIP peer
can rename a sofia channel through the X-FS-Channel-Name header, which
mod_sofia records as the push_channel_name variable. So a name answers what
kind of channel this is, and never carries an authorization decision.
Implementations§
Source§impl<'a> LoopbackChannelName<'a>
impl<'a> LoopbackChannelName<'a>
Trait Implementations§
Source§impl<'a> Clone for LoopbackChannelName<'a>
impl<'a> Clone for LoopbackChannelName<'a>
Source§fn clone(&self) -> LoopbackChannelName<'a>
fn clone(&self) -> LoopbackChannelName<'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 LoopbackChannelName<'a>
Source§impl<'a> Debug for LoopbackChannelName<'a>
impl<'a> Debug for LoopbackChannelName<'a>
impl<'a> Eq for LoopbackChannelName<'a>
Source§impl<'a> PartialEq for LoopbackChannelName<'a>
impl<'a> PartialEq for LoopbackChannelName<'a>
impl<'a> StructuralPartialEq for LoopbackChannelName<'a>
Auto Trait Implementations§
impl<'a> Freeze for LoopbackChannelName<'a>
impl<'a> RefUnwindSafe for LoopbackChannelName<'a>
impl<'a> Send for LoopbackChannelName<'a>
impl<'a> Sync for LoopbackChannelName<'a>
impl<'a> Unpin for LoopbackChannelName<'a>
impl<'a> UnsafeUnpin for LoopbackChannelName<'a>
impl<'a> UnwindSafe for LoopbackChannelName<'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.