Struct prometheus_client::encoding::text::ValueEncoder
source · [−]pub struct ValueEncoder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> ValueEncoder<'a>
impl<'a> ValueEncoder<'a>
sourcepub fn encode_value<V: Encode>(
&mut self,
v: V
) -> Result<ExemplarEncoder<'_>, Error>
pub fn encode_value<V: Encode>(
&mut self,
v: V
) -> Result<ExemplarEncoder<'_>, Error>
Encode the metric value. E.g. in the case of Counter
the
monotonically increasing counter value.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ValueEncoder<'a>
impl<'a> !Send for ValueEncoder<'a>
impl<'a> !Sync for ValueEncoder<'a>
impl<'a> Unpin for ValueEncoder<'a>
impl<'a> !UnwindSafe for ValueEncoder<'a>
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