Struct glean_core::metrics::StringListMetric [−][src]
pub struct StringListMetric { /* fields omitted */ }
Expand description
A string list metric.
This allows appending a string value with arbitrary content to a list.
Implementations
Creates a new string list metric.
Sets to a specific list of strings.
Arguments
glean
- The Glean instance this metric belongs to.value
- The list of string to set the metric to.
Notes
If passed an empty list, records an error and returns.
Truncates the list if it is longer than MAX_LIST_LENGTH
and logs an error.
Truncates any value in the list if it is longer than MAX_STRING_LENGTH
and logs an error.
Test-only API (exported for FFI purposes).
Gets the currently-stored values.
This doesn’t clear the stored value.
Trait Implementations
Access the stored metadata
Access the stored metadata mutable
Whether this metric should currently be recorded Read more
Auto Trait Implementations
impl RefUnwindSafe for StringListMetric
impl Send for StringListMetric
impl Sync for StringListMetric
impl Unpin for StringListMetric
impl UnwindSafe for StringListMetric
Blanket Implementations
Mutably borrows from an owned value. Read more