pub struct FormatRecord<'a> {
pub record: &'a Record<'a>,
pub time: TimeFormatter<'a>,
}Expand description
For accessing log Record in crate::LogFormat
Fields§
§record: &'a Record<'a>§time: TimeFormatter<'a>Implementations§
Source§impl<'a> FormatRecord<'a>
impl<'a> FormatRecord<'a>
pub fn file(&self) -> &str
pub fn line(&self) -> u32
pub fn timestamp_nano(&self) -> i64
pub fn time(&self) -> String
pub fn key(&self, key: &str) -> String
pub fn level(&self) -> Level
pub fn msg(&self) -> &'a Arguments<'a>
pub fn thread_id(&self) -> ThreadId
Auto Trait Implementations§
impl<'a> Freeze for FormatRecord<'a>
impl<'a> !RefUnwindSafe for FormatRecord<'a>
impl<'a> !Send for FormatRecord<'a>
impl<'a> !Sync for FormatRecord<'a>
impl<'a> Unpin for FormatRecord<'a>
impl<'a> !UnwindSafe for FormatRecord<'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