pub struct RawLine<'a> {
pub uuid: Option<&'a str>,
pub timestamp: Option<&'a str>,
pub idle_pct: Option<&'a str>,
pub level: Option<LogLevel>,
pub source: Option<&'a str>,
pub message: &'a str,
pub kind: LineKind,
}Expand description
Zero-copy result of parsing a single log line.
Fields are None when the line’s format doesn’t include them (e.g. a
BareContinuation has no uuid, timestamp, level, or source).
The message field always contains the remaining text.
Fields§
§uuid: Option<&'a str>Session UUID, present for Full, UuidContinuation, and Truncated lines.
timestamp: Option<&'a str>Microsecond-precision timestamp, present only for Full and System lines.
idle_pct: Option<&'a str>Core scheduler idle percentage (e.g. "95.97%"), a system health indicator.
level: Option<LogLevel>Log severity, present only for Full and System lines.
source: Option<&'a str>Source file and line (e.g. "sofia.c:7624"), present only for Full and System lines.
message: &'a strThe message text after all structured fields have been consumed.
kind: LineKindWhich of the five line formats this line matched.
Trait Implementations§
impl<'a> Eq for RawLine<'a>
impl<'a> StructuralPartialEq for RawLine<'a>
Auto Trait Implementations§
impl<'a> Freeze for RawLine<'a>
impl<'a> RefUnwindSafe for RawLine<'a>
impl<'a> Send for RawLine<'a>
impl<'a> Sync for RawLine<'a>
impl<'a> Unpin for RawLine<'a>
impl<'a> UnsafeUnpin for RawLine<'a>
impl<'a> UnwindSafe for RawLine<'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
Mutably borrows from an owned value. Read more
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.