pub struct CounterTracer { /* private fields */ }Expand description
Tracers Counter metrics that can increments only.
Implementations§
Methods from Deref<Target = Tracer<CounterState>>§
Sourcepub fn send(
&self,
data: <T as Flow>::Event,
opt_system_time: Option<SystemTime>,
direction: Option<Direction<ProviderProtocol>>,
)
pub fn send( &self, data: <T as Flow>::Event, opt_system_time: Option<SystemTime>, direction: Option<Direction<ProviderProtocol>>, )
Send an event to a Recorder.
Sourcepub fn subscribe(&mut self) -> Result<Receiver<ActionEnvelope<T>>, Error>
pub fn subscribe(&mut self) -> Result<Receiver<ActionEnvelope<T>>, Error>
Subscribe to the stream of the watcher.
Trait Implementations§
Source§impl Clone for CounterTracer
impl Clone for CounterTracer
Source§fn clone(&self) -> CounterTracer
fn clone(&self) -> CounterTracer
Returns a duplicate 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 moreSource§impl Debug for CounterTracer
impl Debug for CounterTracer
Source§impl Deref for CounterTracer
impl Deref for CounterTracer
Auto Trait Implementations§
impl Freeze for CounterTracer
impl !RefUnwindSafe for CounterTracer
impl Send for CounterTracer
impl Sync for CounterTracer
impl Unpin for CounterTracer
impl !UnwindSafe for CounterTracer
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