Struct tracing_glog::LocalTime
source · [−]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: The time
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
sourceimpl<F> FormatTime for LocalTime<F>where
F: Formattable,
impl<F> FormatTime for LocalTime<F>where
F: Formattable,
sourcefn format_time(&self, writer: &mut Writer<'_>) -> Result
fn format_time(&self, writer: &mut Writer<'_>) -> Result
Measure and write out the current time. Read more
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more