pub struct TimestampNanos(pub i64);Expand description
Unix timestamp in nanoseconds since epoch.
Used for APM span timing where nanosecond precision is needed.
Tuple Fields§
§0: i64Implementations§
Trait Implementations§
Source§impl Clone for TimestampNanos
impl Clone for TimestampNanos
Source§fn clone(&self) -> TimestampNanos
fn clone(&self) -> TimestampNanos
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 TimestampNanos
impl Debug for TimestampNanos
Source§impl<'de> Deserialize<'de> for TimestampNanos
impl<'de> Deserialize<'de> for TimestampNanos
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 TimestampNanos
impl Display for TimestampNanos
Source§impl From<TimestampNanos> for i64
impl From<TimestampNanos> for i64
Source§fn from(ts: TimestampNanos) -> Self
fn from(ts: TimestampNanos) -> Self
Converts to this type from the input type.
Source§impl From<i64> for TimestampNanos
impl From<i64> for TimestampNanos
Source§impl Hash for TimestampNanos
impl Hash for TimestampNanos
Source§impl Ord for TimestampNanos
impl Ord for TimestampNanos
Source§fn cmp(&self, other: &TimestampNanos) -> Ordering
fn cmp(&self, other: &TimestampNanos) -> 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 TimestampNanos
impl PartialEq for TimestampNanos
Source§impl PartialOrd for TimestampNanos
impl PartialOrd for TimestampNanos
Source§impl Serialize for TimestampNanos
impl Serialize for TimestampNanos
impl Copy for TimestampNanos
impl Eq for TimestampNanos
impl StructuralPartialEq for TimestampNanos
Auto Trait Implementations§
impl Freeze for TimestampNanos
impl RefUnwindSafe for TimestampNanos
impl Send for TimestampNanos
impl Sync for TimestampNanos
impl Unpin for TimestampNanos
impl UnwindSafe for TimestampNanos
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.