struct MetricOutput<'a, 'b> {
family: MetricDescriptor,
destination: &'a mut MetricDestination<'b>,
}Fields§
§family: MetricDescriptor§destination: &'a mut MetricDestination<'b>Implementations§
Source§impl<'a, 'b> MetricOutput<'a, 'b>
impl<'a, 'b> MetricOutput<'a, 'b>
fn new( family: MetricDescriptor, metadata: &str, destination: &'a mut MetricDestination<'b>, ) -> Self
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,
Auto Trait Implementations§
impl<'a, 'b> Freeze for MetricOutput<'a, 'b>
impl<'a, 'b> RefUnwindSafe for MetricOutput<'a, 'b>
impl<'a, 'b> Send for MetricOutput<'a, 'b>
impl<'a, 'b> Sync for MetricOutput<'a, 'b>
impl<'a, 'b> Unpin for MetricOutput<'a, 'b>
impl<'a, 'b> UnsafeUnpin for MetricOutput<'a, 'b>
impl<'a, 'b> !UnwindSafe for MetricOutput<'a, 'b>
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