pub struct Frame<'t> { /* private fields */ }
Expand description
A log frame
Implementations§
Source§impl<'t> Frame<'t>
impl<'t> Frame<'t>
Sourcepub fn display(&'t self, colored: bool) -> DisplayFrame<'t>
pub fn display(&'t self, colored: bool) -> DisplayFrame<'t>
Returns a struct that will format this log frame (including message, timestamp, level, etc.).
pub fn display_timestamp(&'t self) -> Option<DisplayTimestamp<'t>>
Sourcepub fn display_message(&'t self) -> DisplayMessage<'t>
pub fn display_message(&'t self) -> DisplayMessage<'t>
Returns a struct that will format the message contained in this log frame.
pub fn level(&self) -> Option<Level>
pub fn index(&self) -> u64
Trait Implementations§
impl<'t> StructuralPartialEq for Frame<'t>
Auto Trait Implementations§
impl<'t> Freeze for Frame<'t>
impl<'t> RefUnwindSafe for Frame<'t>
impl<'t> Send for Frame<'t>
impl<'t> Sync for Frame<'t>
impl<'t> Unpin for Frame<'t>
impl<'t> UnwindSafe for Frame<'t>
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