pub struct MeteredSenderMetrics { /* private fields */ }
Available on crate feature
common
only.Expand description
Throughput metrics for MeteredSender
Implementations§
Source§impl MeteredSenderMetrics
impl MeteredSenderMetrics
Sourcepub fn new_with_labels(scope: &str, labels: impl IntoLabels + Clone) -> Self
pub fn new_with_labels(scope: &str, labels: impl IntoLabels + Clone) -> Self
Create new instance of metrics with provided labels.
Sourcepub fn describe(scope: &str)
pub fn describe(scope: &str)
Describe all exposed metrics. Internally calls describe_*
macros from
the metrics crate according to the metric type.
See https://docs.rs/metrics/0.20.1/metrics/index.html#macros
Trait Implementations§
Source§impl Clone for MeteredSenderMetrics
impl Clone for MeteredSenderMetrics
Source§fn clone(&self) -> MeteredSenderMetrics
fn clone(&self) -> MeteredSenderMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MeteredSenderMetrics
impl !RefUnwindSafe for MeteredSenderMetrics
impl Send for MeteredSenderMetrics
impl Sync for MeteredSenderMetrics
impl Unpin for MeteredSenderMetrics
impl !UnwindSafe for MeteredSenderMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes