pub struct Labels { /* fields omitted */ }
Base structure to carry metric labels from the application to the metric backend(s).
Can carry both one-off labels and exported context labels (if async metrics are enabled).
Used in applications through the labels!() macro.
pub fn save_context(&mut self) | [src] |
Used to save metric context before enqueuing value for async output.
Generic label lookup function.
Searches provided labels, provided scopes or default scopes.
Export current state of labels to a map.
Note: An iterator would still need to allocate to check for uniqueness of keys.
Create empty labels.
Only Thread and App labels will be used for lookups.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static