Struct prometheus_client::metrics::info::Info
source · pub struct Info<S>(_);
Expand description
Open Metrics Info
metric “to expose textual information which SHOULD NOT
change during process lifetime”.
let _info = Info::new(vec![("os", "GNU/linux")]);
Implementations§
Trait Implementations§
source§impl<S> EncodeMetric for Info<S>where
S: Clone + Hash + Eq + EncodeLabelSet,
impl<S> EncodeMetric for Info<S>where S: Clone + Hash + Eq + EncodeLabelSet,
source§fn encode(&self, encoder: MetricEncoder<'_, '_>) -> Result<(), Error>
fn encode(&self, encoder: MetricEncoder<'_, '_>) -> Result<(), Error>
Encode the given instance in the OpenMetrics text encoding.
source§fn metric_type(&self) -> MetricType
fn metric_type(&self) -> MetricType
The OpenMetrics metric type of the instance.
source§impl<S> TypedMetric for Info<S>
impl<S> TypedMetric for Info<S>
source§const TYPE: MetricType = MetricType::Info
const TYPE: MetricType = MetricType::Info
The OpenMetrics metric type.
Auto Trait Implementations§
impl<S> RefUnwindSafe for Info<S>where S: RefUnwindSafe,
impl<S> Send for Info<S>where S: Send,
impl<S> Sync for Info<S>where S: Sync,
impl<S> Unpin for Info<S>where S: Unpin,
impl<S> UnwindSafe for Info<S>where S: 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