#[non_exhaustive]pub struct HotKeyEntry {
pub key: String,
pub value: u64,
}Expand description
A single hotkey entry with its metric value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringThe key name.
value: u64The metric value (CPU time in microseconds or network bytes, depending on context).
Trait Implementations§
Source§impl Clone for HotKeyEntry
impl Clone for HotKeyEntry
Source§fn clone(&self) -> HotKeyEntry
fn clone(&self) -> HotKeyEntry
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 HotKeyEntry
impl Debug for HotKeyEntry
Source§impl PartialEq for HotKeyEntry
impl PartialEq for HotKeyEntry
Source§fn eq(&self, other: &HotKeyEntry) -> bool
fn eq(&self, other: &HotKeyEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HotKeyEntry
Auto Trait Implementations§
impl Freeze for HotKeyEntry
impl RefUnwindSafe for HotKeyEntry
impl Send for HotKeyEntry
impl Sync for HotKeyEntry
impl Unpin for HotKeyEntry
impl UnsafeUnpin for HotKeyEntry
impl UnwindSafe for HotKeyEntry
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