pub enum TimeFormat {
RelativeToEpoch,
RelativeToPreviousEvent,
}Variants§
RelativeToEpoch
A duration relative to the ReferenceTime “epoch” field. This approach uses the largest amount of characters. It is good for stateless loggers. This is the default value of the “time_format” field.
RelativeToPreviousEvent
A delta-encoded value, based on the previously logged value. The first event in a trace is always relative to the ReferenceTime. This approach uses the least amount of characters. It is suitable for stateful loggers.
Trait Implementations§
Source§impl Clone for TimeFormat
impl Clone for TimeFormat
Source§fn clone(&self) -> TimeFormat
fn clone(&self) -> TimeFormat
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeFormat
impl Debug for TimeFormat
Source§impl Default for TimeFormat
impl Default for TimeFormat
Source§fn default() -> TimeFormat
fn default() -> TimeFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeFormat
impl<'de> Deserialize<'de> for TimeFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TimeFormat> for TimeFormat
impl From<TimeFormat> for TimeFormat
Source§fn from(value: TimeFormat) -> Self
fn from(value: TimeFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TimeFormat
impl PartialEq for TimeFormat
Source§impl Serialize for TimeFormat
impl Serialize for TimeFormat
impl Copy for TimeFormat
impl Eq for TimeFormat
impl StructuralPartialEq for TimeFormat
Auto Trait Implementations§
impl Freeze for TimeFormat
impl RefUnwindSafe for TimeFormat
impl Send for TimeFormat
impl Sync for TimeFormat
impl Unpin for TimeFormat
impl UnwindSafe for TimeFormat
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)