#[non_exhaustive]pub enum MessageKind {
Show 15 variants
Execute {
depth: u32,
channel: String,
application: String,
arguments: String,
},
Dialplan {
channel: String,
detail: String,
},
ChannelData,
ChannelField {
name: String,
value: String,
},
Variable {
name: String,
value: String,
},
SdpMarker {
direction: SdpDirection,
},
StateChange {
detail: String,
},
CodecNegotiation,
Media {
detail: String,
},
ChannelLifecycle {
detail: String,
},
SipInvite {
direction: SipInviteDirection,
profile: String,
call_id: Option<String>,
},
EventSocket {
detail: String,
},
General,
FileChange,
DateChange,
}Expand description
Semantic classification of a log message’s content.
Display includes variant-specific detail (e.g. execute(set), var(sip_call_id))
while label() returns just the category string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Execute
Dialplan application execution trace (EXECUTE [depth=N] channel app(args)).
Dialplan
Dialplan processing output — regex matching, actions, context routing.
ChannelData
Start of a CHANNEL_DATA variable dump block.
ChannelField
A Channel-* or similar hyphenated field from a CHANNEL_DATA dump.
Variable
A variable_* field — from dumps, SET, EXPORT, set(), or CoreSession::setVariable.
SdpMarker
Start of an SDP body block (Local SDP:, Remote SDP:).
Fields
direction: SdpDirectionStateChange
Channel state transition (State Change, Callstate Change, SOFIA state).
CodecNegotiation
Audio Codec Compare lines during codec negotiation.
Media
RTP, RTCP, recording, and other media-related messages.
ChannelLifecycle
Channel lifecycle events — new/close/hangup, bridge, ring, REFER, CANCEL, BYE.
SipInvite
Sofia logged a SIP INVITE on this channel — the line is one of:
sofia/<profile>/<endpoint> receiving invite from <ip>:<port> ... call-id: <id>sofia/<profile>/<endpoint> sending invite [version: ...] [call-id: <id>]
Always emitted by sofia for every inbound and outbound call regardless
of dialplan — the canonical primitive for sip_call_id ↔ channel_uuid
correlation. The line’s leading UUID is on crate::LogEntry::uuid.
Fields
direction: SipInviteDirectionEventSocket
Event socket commands from mod_event_socket.
General
Anything not matching a more specific pattern.
FileChange
Synthetic marker emitted at log file boundaries (never from classify_message).
DateChange
Synthetic marker emitted at date boundaries (never from classify_message).
Implementations§
Source§impl MessageKind
impl MessageKind
Trait Implementations§
Source§impl Clone for MessageKind
impl Clone for MessageKind
Source§fn clone(&self) -> MessageKind
fn clone(&self) -> MessageKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageKind
impl Debug for MessageKind
Source§impl Display for MessageKind
impl Display for MessageKind
Source§impl PartialEq for MessageKind
impl PartialEq for MessageKind
Source§fn eq(&self, other: &MessageKind) -> bool
fn eq(&self, other: &MessageKind) -> bool
self and other values to be equal, and is used by ==.impl Eq for MessageKind
impl StructuralPartialEq for MessageKind
Auto Trait Implementations§
impl Freeze for MessageKind
impl RefUnwindSafe for MessageKind
impl Send for MessageKind
impl Sync for MessageKind
impl Unpin for MessageKind
impl UnsafeUnpin for MessageKind
impl UnwindSafe for MessageKind
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.