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
sourceimpl<S> EncodeMetric for Info<S>where
S: Clone + Hash + Eq + Encode,
impl<S> EncodeMetric for Info<S>where
S: Clone + Hash + Eq + Encode,
fn encode(&self, encoder: Encoder<'_, '_>) -> Result<(), Error>
fn metric_type(&self) -> MetricType
sourceimpl<S> TypedMetric for Info<S>
impl<S> TypedMetric for Info<S>
const TYPE: MetricType = MetricType::Info
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more