#[non_exhaustive]pub struct LogLine {
pub frame: u32,
pub level: LogLevel,
pub category: LogCategory,
pub text: String,
}Expand description
One line of the log. Build it with LogLine::new (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.frame: u32The frame it was given in (frames count from 1; 0 is before the first).
level: LogLevelHow serious it is.
category: LogCategoryWhat it is about.
text: StringWhat it says, in English.
Implementations§
Trait Implementations§
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