Struct openmetrics_parser::MetricsExposition
source · pub struct MetricsExposition<TypeSet, ValueType> {
pub families: HashMap<String, MetricFamily<TypeSet, ValueType>>,
}
Expand description
Exposition is the top level object of the parser. It’s a collection of metric families, indexed by name
Fields§
§families: HashMap<String, MetricFamily<TypeSet, ValueType>>
Implementations§
source§impl<TypeSet, ValueType> MetricsExposition<TypeSet, ValueType>
impl<TypeSet, ValueType> MetricsExposition<TypeSet, ValueType>
pub fn new() -> MetricsExposition<TypeSet, ValueType>
Trait Implementations§
source§impl<TypeSet, ValueType> Default for MetricsExposition<TypeSet, ValueType>
impl<TypeSet, ValueType> Default for MetricsExposition<TypeSet, ValueType>
Auto Trait Implementations§
impl<TypeSet, ValueType> RefUnwindSafe for MetricsExposition<TypeSet, ValueType>where TypeSet: RefUnwindSafe, ValueType: RefUnwindSafe,
impl<TypeSet, ValueType> Send for MetricsExposition<TypeSet, ValueType>where TypeSet: Send, ValueType: Send,
impl<TypeSet, ValueType> Sync for MetricsExposition<TypeSet, ValueType>where TypeSet: Sync, ValueType: Sync,
impl<TypeSet, ValueType> Unpin for MetricsExposition<TypeSet, ValueType>where TypeSet: Unpin, ValueType: Unpin,
impl<TypeSet, ValueType> UnwindSafe for MetricsExposition<TypeSet, ValueType>where TypeSet: UnwindSafe, ValueType: UnwindSafe,
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