Struct metrics_exporter_dogstatsd::StatsdHandle
source · pub struct StatsdHandle { /* private fields */ }
Expand description
Handle for accessing metrics stored via StatsdRecorder
.
In certain scenarios, it may be necessary to directly handle requests that would otherwise be
handled directly by the HTTP listener, or push gateway background task. StatsdHandle
allows rendering a snapshot of the current metrics stored by an installed StatsdRecorder
as a payload conforming to the Statsd exposition format.
Implementations§
Trait Implementations§
source§impl Clone for StatsdHandle
impl Clone for StatsdHandle
source§fn clone(&self) -> StatsdHandle
fn clone(&self) -> StatsdHandle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for StatsdHandle
impl Send for StatsdHandle
impl Sync for StatsdHandle
impl Unpin for StatsdHandle
impl UnwindSafe for StatsdHandle
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