Struct snarkos_metrics::Key [−][src]
pub struct Key { /* fields omitted */ }
Expand description
A metric identifier.
Implementations
Creates a Key
from a name.
pub fn from_parts<N, L>(name: N, labels: L) -> Key where
N: Into<Cow<'static, str>>,
L: IntoLabels,
pub fn from_parts<N, L>(name: N, labels: L) -> Key where
N: Into<Cow<'static, str>>,
L: IntoLabels,
Creates a Key
from a name and set of labels.
pub fn from_static_labels<N>(name: N, labels: &'static [Label]) -> Key where
N: Into<Cow<'static, str>>,
pub fn from_static_labels<N>(name: N, labels: &'static [Label]) -> Key where
N: Into<Cow<'static, str>>,
Creates a Key
from a non-static name and a static set of labels.
Creates a Key
from a static name.
This function is const
, so it can be used in a static context.
Creates a Key
from a static name and static set of labels.
This function is const
, so it can be used in a static context.
Consumes this Key
, returning the name parts and any labels.
Clones this Key
, and expands the existing set of labels.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Key
impl UnwindSafe for Key
Blanket Implementations
Mutably borrows from an owned value. Read more