#[non_exhaustive]pub enum SipHeaderPrefix {
Invite,
Request,
Response,
Provisional,
Bye,
NoBye,
}Expand description
FreeSWITCH SIP header passthrough variable prefix.
Each prefix controls which SIP message direction the header variable applies to.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invite
sip_i_ — raw INVITE header (read-only, set by parse-all-invite-headers).
Request
sip_h_ — inject header on outgoing request (INVITE, REFER, etc.).
Response
sip_rh_ — inject header on outgoing response (200 OK, etc.).
Provisional
sip_ph_ — inject header on provisional response (180, 183).
Bye
sip_bye_h_ — inject header on outgoing BYE.
NoBye
sip_nobye_h_ — suppress a specific header on outgoing BYE.
Implementations§
Trait Implementations§
Source§impl Clone for SipHeaderPrefix
impl Clone for SipHeaderPrefix
Source§fn clone(&self) -> SipHeaderPrefix
fn clone(&self) -> SipHeaderPrefix
Returns a duplicate of the value. Read more
1.0.0 · 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 SipHeaderPrefix
impl Debug for SipHeaderPrefix
Source§impl Display for SipHeaderPrefix
impl Display for SipHeaderPrefix
Source§impl Hash for SipHeaderPrefix
impl Hash for SipHeaderPrefix
Source§impl PartialEq for SipHeaderPrefix
impl PartialEq for SipHeaderPrefix
impl Copy for SipHeaderPrefix
impl Eq for SipHeaderPrefix
impl StructuralPartialEq for SipHeaderPrefix
Auto Trait Implementations§
impl Freeze for SipHeaderPrefix
impl RefUnwindSafe for SipHeaderPrefix
impl Send for SipHeaderPrefix
impl Sync for SipHeaderPrefix
impl Unpin for SipHeaderPrefix
impl UnsafeUnpin for SipHeaderPrefix
impl UnwindSafe for SipHeaderPrefix
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
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
Compare self to
key and return true if they are equal.