pub struct SessionStatsMetric {
pub name: &'static str,
pub kind: MetricKind,
}Expand description
Static metadata for a single session metric.
Fields§
§name: &'static strHuman-readable dotted name (e.g. "net.bytes_sent").
kind: MetricKindWhether this metric is a counter or gauge.
Trait Implementations§
Source§impl Clone for SessionStatsMetric
impl Clone for SessionStatsMetric
Source§fn clone(&self) -> SessionStatsMetric
fn clone(&self) -> SessionStatsMetric
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 SessionStatsMetric
impl Debug for SessionStatsMetric
impl Copy for SessionStatsMetric
Auto Trait Implementations§
impl Freeze for SessionStatsMetric
impl RefUnwindSafe for SessionStatsMetric
impl Send for SessionStatsMetric
impl Sync for SessionStatsMetric
impl Unpin for SessionStatsMetric
impl UnsafeUnpin for SessionStatsMetric
impl UnwindSafe for SessionStatsMetric
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