pub struct SummaryBuilder { /* private fields */ }
Expand description
Summary
builder.
Implementations§
Source§impl SummaryBuilder
impl SummaryBuilder
Sourcepub fn namespace(&mut self, namespace: &str) -> &mut Self
pub fn namespace(&mut self, namespace: &str) -> &mut Self
Sets the namespace part of the metric name of this.
Sourcepub fn subsystem(&mut self, subsystem: &str) -> &mut Self
pub fn subsystem(&mut self, subsystem: &str) -> &mut Self
Sets the subsystem part of the metric name of this.
Sourcepub fn label(&mut self, name: &str, value: &str) -> &mut Self
pub fn label(&mut self, name: &str, value: &str) -> &mut Self
Adds a label.
Note that name
will be validated in the invocation of the finish
method.
The name "quantile"
is reserved for designating summary quantiles.
Sourcepub fn registry(&mut self, registry: Registry) -> &mut Self
pub fn registry(&mut self, registry: Registry) -> &mut Self
Adds a registry to which the resulting histograms will be registered.
Sourcepub fn default_registry(&mut self) -> &mut Self
pub fn default_registry(&mut self) -> &mut Self
Adds the default registry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SummaryBuilder
impl RefUnwindSafe for SummaryBuilder
impl Send for SummaryBuilder
impl Sync for SummaryBuilder
impl Unpin for SummaryBuilder
impl UnwindSafe for SummaryBuilder
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