pub enum LogTimeDisplayFormat {
Original,
WallTime {
tz: Timezone,
offset: i64,
},
}
Expand description
Configuration for how to display the timestamp associated to a log line.
Variants§
Original
Display the log message’s timestamp as monotonic nanoseconds since boot.
WallTime
Display the log’s timestamp as a human-readable string in ISO 8601 format.
Trait Implementations§
Source§impl Clone for LogTimeDisplayFormat
impl Clone for LogTimeDisplayFormat
Source§fn clone(&self) -> LogTimeDisplayFormat
fn clone(&self) -> LogTimeDisplayFormat
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LogTimeDisplayFormat
impl Debug for LogTimeDisplayFormat
Source§impl Default for LogTimeDisplayFormat
impl Default for LogTimeDisplayFormat
Source§fn default() -> LogTimeDisplayFormat
fn default() -> LogTimeDisplayFormat
Returns the “default value” for a type. Read more
impl Copy for LogTimeDisplayFormat
Auto Trait Implementations§
impl Freeze for LogTimeDisplayFormat
impl RefUnwindSafe for LogTimeDisplayFormat
impl Send for LogTimeDisplayFormat
impl Sync for LogTimeDisplayFormat
impl Unpin for LogTimeDisplayFormat
impl UnwindSafe for LogTimeDisplayFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)