Struct slog_extlog::stats::StatDefinitionTagged
source · pub struct StatDefinitionTagged {
pub defn: &'static (dyn StatDefinition + Sync),
pub fixed_tags: &'static [(&'static str, &'static str)],
}
Expand description
A stat definition, possibly filtered with some specific tag values.
Fields§
§defn: &'static (dyn StatDefinition + Sync)
The statistic definition
The fixed tag values. The keys must match keys in defn
.
Implementations§
source§impl StatDefinitionTagged
impl StatDefinitionTagged
sourcepub fn has_fixed_groups(&self, tags: &[(&str, &str)]) -> bool
pub fn has_fixed_groups(&self, tags: &[(&str, &str)]) -> bool
Check if the passed set of fixed tags corresponds to this statistic definition.
Auto Trait Implementations§
impl !RefUnwindSafe for StatDefinitionTagged
impl Send for StatDefinitionTagged
impl Sync for StatDefinitionTagged
impl Unpin for StatDefinitionTagged
impl !UnwindSafe for StatDefinitionTagged
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