Struct prometheus_client::metrics::info::Info
source · pub struct Info<S>(/* private fields */);
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>
impl<S> EncodeMetric for Info<S>
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> Freeze for Info<S>where
S: Freeze,
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