pub struct Log {
pub level: Level,
pub time: Instant,
pub file: PathBuf,
pub linum_new: Option<usize>,
pub linum_old: Option<usize>,
pub line: Option<String>,
pub message: String,
}
Expand description
Holds a log entry
Fields§
§level: Level
Log entry level
time: Instant
Time when the entry was logged
file: PathBuf
File name associated with the entry
linum_new: Option<usize>
Line number in the formatted file
linum_old: Option<usize>
Line number in the original file
line: Option<String>
Line content
message: String
Entry-specific message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnwindSafe for Log
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