pub struct MetricSample {
pub metric_id: u32,
pub timestamp_ns: u64,
pub value: MetricValue,
}Expand description
A single metric sample written by a Data Plane core.
Fields§
§metric_id: u32Metric identifier (interned string index, not a heap String).
timestamp_ns: u64Timestamp in nanoseconds since epoch (from CLOCK_MONOTONIC).
value: MetricValueThe metric value.
Trait Implementations§
Source§impl Clone for MetricSample
impl Clone for MetricSample
Source§fn clone(&self) -> MetricSample
fn clone(&self) -> MetricSample
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricSample
impl Debug for MetricSample
impl Copy for MetricSample
Auto Trait Implementations§
impl Freeze for MetricSample
impl RefUnwindSafe for MetricSample
impl Send for MetricSample
impl Sync for MetricSample
impl Unpin for MetricSample
impl UnsafeUnpin for MetricSample
impl UnwindSafe for MetricSample
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