pub struct Record<'a> {
pub severity: Severity,
pub logger_name: &'a str,
pub message: &'a str,
pub file: &'static str,
pub line: u32,
pub timestamp_ns: u64,
}Expand description
One log entry, handed to each LogSink.
message is already formatted — sinks must NOT re-format.
Fields§
§severity: SeveritySeverity of the record.
logger_name: &'a strName of the originating Logger.
message: &'a strFormatted message text (no trailing newline).
file: &'static strFile the macro invocation came from (core::file!()).
line: u32Line within file (core::line!()).
timestamp_ns: u64Monotonic timestamp in nanoseconds. 0 if unavailable.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Record<'a>
impl<'a> RefUnwindSafe for Record<'a>
impl<'a> Send for Record<'a>
impl<'a> Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnsafeUnpin for Record<'a>
impl<'a> UnwindSafe for Record<'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