pub struct LogRecord {
pub prefix: Bytes,
pub message: RawMessage,
pub diagnostics: Vec<LogDiagnostic>,
}Expand description
A message read from a log, with the bytes before it.
Fields§
§prefix: BytesThe bytes between the previous record and this message.
message: RawMessageThe message, split at the separator it was logged with. A message
logged with ^A for SOH is a copy with SOH restored.
diagnostics: Vec<LogDiagnostic>The problems with the record, in the order found.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LogRecord
impl Forget for LogRecord
impl Move for LogRecord
impl RefUnwindSafe for LogRecord
impl Send for LogRecord
impl Sync for LogRecord
impl Unpin for LogRecord
impl UnsafeUnpin for LogRecord
impl UnwindSafe for LogRecord
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