pub struct LogLine {
pub seq: Seq,
pub t: Option<TimeMs>,
pub level: LogLevel,
pub module: String,
pub run: Option<RunId>,
pub line: String,
}Expand description
One diagnostic line on its way to a page.
Fields§
§seq: SeqWhere the ledger stood when the line was written. Not a sequence of this stream’s own: two lines can share it, and a reader uses it to put the line beside the history rather than to detect a gap.
t: Option<TimeMs>When this machine wrote it. Absent when the clock could not be
read, because seq is the anchor either way and dropping the
line would lose the diagnostic to save the timestamp.
level: LogLevel§module: String§run: Option<RunId>Which run it was written under, and absent for the city itself.
line: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for LogLine
impl<'de> Deserialize<'de> for LogLine
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
impl Eq for LogLine
impl StructuralPartialEq for LogLine
Auto Trait Implementations§
impl Freeze for LogLine
impl RefUnwindSafe for LogLine
impl Send for LogLine
impl Sync for LogLine
impl Unpin for LogLine
impl UnsafeUnpin for LogLine
impl UnwindSafe for LogLine
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