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> Freeze for MetricsExposition<TypeSet, ValueType>
impl<TypeSet, ValueType> RefUnwindSafe for MetricsExposition<TypeSet, ValueType>where
TypeSet: RefUnwindSafe,
ValueType: RefUnwindSafe,
impl<TypeSet, ValueType> Send for MetricsExposition<TypeSet, ValueType>
impl<TypeSet, ValueType> Sync for MetricsExposition<TypeSet, ValueType>
impl<TypeSet, ValueType> Unpin for MetricsExposition<TypeSet, ValueType>
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