Struct metrics_util::layers::FanoutBuilder
source · pub struct FanoutBuilder { /* private fields */ }
Expand description
A layer for fanning out metrics to multiple recorders.
More information on the behavior of the layer can be found in Fanout
.
Implementations§
source§impl FanoutBuilder
impl FanoutBuilder
sourcepub fn add_recorder<R>(self, recorder: R) -> FanoutBuilderwhere
R: Recorder + 'static,
pub fn add_recorder<R>(self, recorder: R) -> FanoutBuilderwhere R: Recorder + 'static,
Adds a recorder to the fanout list.
Trait Implementations§
source§impl Default for FanoutBuilder
impl Default for FanoutBuilder
source§fn default() -> FanoutBuilder
fn default() -> FanoutBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for FanoutBuilder
impl !Send for FanoutBuilder
impl !Sync for FanoutBuilder
impl Unpin for FanoutBuilder
impl !UnwindSafe for FanoutBuilder
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