Struct metrics_util::layers::PrefixLayer
source · pub struct PrefixLayer(/* private fields */);
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§
source§impl 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 Freeze for PrefixLayer
impl RefUnwindSafe for PrefixLayer
impl Send for PrefixLayer
impl Sync for PrefixLayer
impl Unpin for PrefixLayer
impl UnwindSafe for PrefixLayer
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