pub struct TimestampMillis(pub i64);Expand description
Unix timestamp in milliseconds since epoch.
Used for high-precision timing in APM traces.
Tuple Fields§
§0: i64Implementations§
Trait Implementations§
Source§impl Clone for TimestampMillis
impl Clone for TimestampMillis
Source§fn clone(&self) -> TimestampMillis
fn clone(&self) -> TimestampMillis
Returns a duplicate 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 TimestampMillis
impl Debug for TimestampMillis
Source§impl<'de> Deserialize<'de> for TimestampMillis
impl<'de> Deserialize<'de> for TimestampMillis
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 Display for TimestampMillis
impl Display for TimestampMillis
Source§impl From<TimestampMillis> for i64
impl From<TimestampMillis> for i64
Source§fn from(ts: TimestampMillis) -> Self
fn from(ts: TimestampMillis) -> Self
Converts to this type from the input type.
Source§impl From<TimestampSecs> for TimestampMillis
impl From<TimestampSecs> for TimestampMillis
Source§fn from(ts: TimestampSecs) -> Self
fn from(ts: TimestampSecs) -> Self
Converts to this type from the input type.
Source§impl From<i64> for TimestampMillis
impl From<i64> for TimestampMillis
Source§impl Hash for TimestampMillis
impl Hash for TimestampMillis
Source§impl Ord for TimestampMillis
impl Ord for TimestampMillis
Source§fn cmp(&self, other: &TimestampMillis) -> Ordering
fn cmp(&self, other: &TimestampMillis) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimestampMillis
impl PartialEq for TimestampMillis
Source§impl PartialOrd for TimestampMillis
impl PartialOrd for TimestampMillis
Source§impl Serialize for TimestampMillis
impl Serialize for TimestampMillis
impl Copy for TimestampMillis
impl Eq for TimestampMillis
impl StructuralPartialEq for TimestampMillis
Auto Trait Implementations§
impl Freeze for TimestampMillis
impl RefUnwindSafe for TimestampMillis
impl Send for TimestampMillis
impl Sync for TimestampMillis
impl Unpin for TimestampMillis
impl UnwindSafe for TimestampMillis
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.