pub struct LocalTime<F = Vec<FormatItem<'static>>> { /* private fields */ }
Expand description
Formats the current local time using a formatter from the time
crate.
To format the current UTC time instead, use the UtcTime
type.
Warning: Thetime
crate must be compiled with--cfg unsound_local_offset
in order to use local timestamps. When this cfg is not enabled, local timestamps cannot be recorded, and events will be logged without timestamps.See the
time
documentation for more details.
Trait Implementations§
Source§impl<F> FormatTime for LocalTime<F>where
F: Formattable,
impl<F> FormatTime for LocalTime<F>where
F: Formattable,
Auto Trait Implementations§
impl<F> Freeze for LocalTime<F>where
F: Freeze,
impl<F> RefUnwindSafe for LocalTime<F>where
F: RefUnwindSafe,
impl<F> Send for LocalTime<F>where
F: Send,
impl<F> Sync for LocalTime<F>where
F: Sync,
impl<F> Unpin for LocalTime<F>where
F: Unpin,
impl<F> UnwindSafe for LocalTime<F>where
F: 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