Struct metrics_util::layers::PrefixLayer [−][src]
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
impl PrefixLayer
[src]
impl PrefixLayer
[src]pub fn new<S: Into<String>>(prefix: S) -> PrefixLayer
[src]
pub fn new<S: Into<String>>(prefix: S) -> PrefixLayer
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
[src]
impl<T> Pointable for T
[src]