#[non_exhaustive]pub enum LineKind {
Full,
System,
UuidContinuation,
BareContinuation,
Truncated,
Empty,
}Expand description
Classification of a single log line’s structural format.
FreeSWITCH’s switch_log_printf emits five distinct line shapes depending
on whether a session UUID is active, whether the line has a timestamp, and
whether a buffer collision truncated the output. See docs/design-rationale.md
for the full anatomy.
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.
Full
Format A — UUID, timestamp, idle%, level, source, and message.
System
Format B — same as Full but without a UUID prefix (system/global events).
UuidContinuation
Format C — UUID and message only, no timestamp or level.
BareContinuation
Format D — raw text with no UUID or timestamp; inherits context from the previous entry.
Truncated
Format E — buffer collision produced a garbage prefix before the UUID.
Empty
Blank or whitespace-only line.
Trait Implementations§
impl Copy for LineKind
impl Eq for LineKind
impl StructuralPartialEq for LineKind
Auto Trait Implementations§
impl Freeze for LineKind
impl RefUnwindSafe for LineKind
impl Send for LineKind
impl Sync for LineKind
impl Unpin for LineKind
impl UnsafeUnpin for LineKind
impl UnwindSafe for LineKind
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.