#[non_exhaustive]pub enum SofiaEventSubclass {
Show 25 variants
Register,
PreRegister,
RegisterAttempt,
RegisterFailure,
Unregister,
Expire,
GatewayState,
SipUserState,
NotifyRefer,
Reinvite,
GatewayAdd,
GatewayDelete,
GatewayInvalidDigestReq,
RecoveryRecv,
RecoverySend,
RecoveryRecovered,
Error,
ProfileStart,
NotifyWatchedHeader,
WrongCallState,
Transferor,
Transferee,
Replaced,
Intercepted,
ByeResponse,
}Expand description
Sofia event subclass values from mod_sofia.h MY_EVENT_* defines.
These appear as the Event-Subclass header on CUSTOM events fired by
mod_sofia. Use with EventSubscription::sofia_event()
for typed subscriptions, or parse from received events via
HeaderLookup::sofia_event_subclass().
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.
Register
PreRegister
RegisterAttempt
RegisterFailure
Unregister
Expire
GatewayState
SipUserState
NotifyRefer
Reinvite
GatewayAdd
GatewayDelete
GatewayInvalidDigestReq
RecoveryRecv
RecoverySend
RecoveryRecovered
Error
ProfileStart
NotifyWatchedHeader
WrongCallState
Transferor
Transferee
Replaced
Intercepted
ByeResponse
Implementations§
Source§impl SofiaEventSubclass
impl SofiaEventSubclass
Sourcepub const ALL: &[SofiaEventSubclass]
pub const ALL: &[SofiaEventSubclass]
All Sofia event subclass variants.
Sourcepub const REGISTRATION_EVENTS: &[SofiaEventSubclass]
pub const REGISTRATION_EVENTS: &[SofiaEventSubclass]
Registration-related subclasses.
Sourcepub const GATEWAY_EVENTS: &[SofiaEventSubclass]
pub const GATEWAY_EVENTS: &[SofiaEventSubclass]
Gateway lifecycle and state subclasses.
Trait Implementations§
Source§impl Clone for SofiaEventSubclass
impl Clone for SofiaEventSubclass
Source§fn clone(&self) -> SofiaEventSubclass
fn clone(&self) -> SofiaEventSubclass
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 SofiaEventSubclass
impl Debug for SofiaEventSubclass
Source§impl<'de> Deserialize<'de> for SofiaEventSubclass
impl<'de> Deserialize<'de> for SofiaEventSubclass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SofiaEventSubclass
impl Display for SofiaEventSubclass
Source§impl FromStr for SofiaEventSubclass
impl FromStr for SofiaEventSubclass
Source§impl Hash for SofiaEventSubclass
impl Hash for SofiaEventSubclass
Source§impl PartialEq for SofiaEventSubclass
impl PartialEq for SofiaEventSubclass
Source§impl Serialize for SofiaEventSubclass
impl Serialize for SofiaEventSubclass
impl Copy for SofiaEventSubclass
impl Eq for SofiaEventSubclass
impl StructuralPartialEq for SofiaEventSubclass
Auto Trait Implementations§
impl Freeze for SofiaEventSubclass
impl RefUnwindSafe for SofiaEventSubclass
impl Send for SofiaEventSubclass
impl Sync for SofiaEventSubclass
impl Unpin for SofiaEventSubclass
impl UnsafeUnpin for SofiaEventSubclass
impl UnwindSafe for SofiaEventSubclass
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.