pub struct LogFormatter<T = SystemTime> { /* private fields */ }Implementations§
Source§impl<T2> LogFormatter<T2>where
T2: FormatTime,
impl<T2> LogFormatter<T2>where
T2: FormatTime,
pub fn with_timer(timer: T2) -> Self
Trait Implementations§
Source§impl<T: Debug> Debug for LogFormatter<T>
impl<T: Debug> Debug for LogFormatter<T>
Source§impl<C, N, T> FormatEvent<C, N> for LogFormatter<T>
impl<C, N, T> FormatEvent<C, N> for LogFormatter<T>
Source§fn format_event(
&self,
ctx: &FmtContext<'_, C, N>,
writer: Writer<'_>,
event: &Event<'_>,
) -> Result
fn format_event( &self, ctx: &FmtContext<'_, C, N>, writer: Writer<'_>, event: &Event<'_>, ) -> Result
Auto Trait Implementations§
impl<T> Freeze for LogFormatter<T>where
T: Freeze,
impl<T> RefUnwindSafe for LogFormatter<T>where
T: RefUnwindSafe,
impl<T> Send for LogFormatter<T>where
T: Send,
impl<T> Sync for LogFormatter<T>where
T: Sync,
impl<T> Unpin for LogFormatter<T>where
T: Unpin,
impl<T> UnwindSafe for LogFormatter<T>where
T: UnwindSafe,
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