pub struct LatencyTracker {
pub name: MetricName,
pub latency_ns: u64,
pub timestamp_ns: u64,
}Expand description
A latency tracking metric optimized for timing measurements
Fields§
§name: MetricNameThe name of the latency metric
latency_ns: u64The latency measurement in nanoseconds
timestamp_ns: u64Timestamp when the latency was recorded (nanoseconds since epoch)
Trait Implementations§
Source§impl Clone for LatencyTracker
impl Clone for LatencyTracker
Source§fn clone(&self) -> LatencyTracker
fn clone(&self) -> LatencyTracker
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LatencyTracker
impl Debug for LatencyTracker
Source§impl<'de> Deserialize<'de> for LatencyTracker
impl<'de> Deserialize<'de> for LatencyTracker
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
Auto Trait Implementations§
impl Freeze for LatencyTracker
impl RefUnwindSafe for LatencyTracker
impl Send for LatencyTracker
impl Sync for LatencyTracker
impl Unpin for LatencyTracker
impl UnwindSafe for LatencyTracker
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