struct MetricOutput {
family: Option<MetricDescriptor>,
text: Option<String>,
}Fields§
§family: Option<MetricDescriptor>§text: Option<String>Implementations§
Source§impl MetricOutput
impl MetricOutput
fn prometheus() -> Self
fn begin_family(&mut self, descriptor: MetricDescriptor)
fn counter(&mut self, labels: &[MetricLabel], value: u64)
fn gauge(&mut self, labels: &[MetricLabel], value: i64)
fn histogram<B>(
&mut self,
labels: &[MetricLabel],
load_bucket: impl Fn(B) -> u64,
load_count: impl Fn() -> u64,
load_sum_micros: impl Fn() -> u64,
)where
B: MetricBucketLabel,
fn finish_prometheus(self) -> String
Auto Trait Implementations§
impl Freeze for MetricOutput
impl RefUnwindSafe for MetricOutput
impl Send for MetricOutput
impl Sync for MetricOutput
impl Unpin for MetricOutput
impl UnsafeUnpin for MetricOutput
impl UnwindSafe for MetricOutput
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