Struct prometheus_client::encoding::text::BucketEncoder
source · [−]pub struct BucketEncoder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> BucketEncoder<'a>
impl<'a> BucketEncoder<'a>
sourcepub fn encode_bucket(
&mut self,
upper_bound: f64
) -> Result<ValueEncoder<'_>, Error>
pub fn encode_bucket(
&mut self,
upper_bound: f64
) -> Result<ValueEncoder<'_>, Error>
Encode a bucket. Used for the Histogram
metric type.
sourcepub fn no_bucket(&mut self) -> Result<ValueEncoder<'_>, Error>
pub fn no_bucket(&mut self) -> Result<ValueEncoder<'_>, Error>
Signal that the metric type has no bucket.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BucketEncoder<'a>
impl<'a> !Send for BucketEncoder<'a>
impl<'a> !Sync for BucketEncoder<'a>
impl<'a> Unpin for BucketEncoder<'a>
impl<'a> !UnwindSafe for BucketEncoder<'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