Struct hotmic::Source[][src]

pub struct Source<T> { /* fields omitted */ }

An independent handle for sending metric samples into the sink.

Sources are cloneable, and can not only send metric samples but can register and deregister metric facets at any time.

Methods

impl<T> Source<T> where
    T: Eq + Hash
[src]

Sends a metric sample into the sink.

Registers a facet with the sink.

Deregisters a facet from the sink.

Auto Trait Implementations

impl<T> Send for Source<T> where
    T: Send

impl<T> Sync for Source<T> where
    T: Send + Sync