Struct metrics_util::layers::PrefixLayer
source · [−]pub struct PrefixLayer(_);
Expand description
A layer for applying a prefix to every metric key.
More information on the behavior of the layer can be found in Prefix
.
Implementations
sourceimpl PrefixLayer
impl PrefixLayer
sourcepub fn new<S: Into<String>>(prefix: S) -> PrefixLayer
pub fn new<S: Into<String>>(prefix: S) -> PrefixLayer
Creates a new PrefixLayer
based on the given prefix.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PrefixLayer
impl Send for PrefixLayer
impl Sync for PrefixLayer
impl Unpin for PrefixLayer
impl UnwindSafe for PrefixLayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more