Trait cernan::source::Source [] [src]

pub trait Source<SConfig> where
    Self: 'static + Send + Sized,
    SConfig: 'static + Send + Clone
{ fn init(config: SConfig) -> Self;
fn run(self, chans: Channel, poller: Poll); fn new(chans: Channel, config: SConfig) -> RunnableSource<Self, SConfig> { ... } }

cernan Source, the originator of all metric::Event.

A cernan Source creates all metric::Event, doing so by listening to network IO, reading from files, etc etc. All sources push into the routing topology.

Required Methods

Initializes state for the given Source.

Run method invoked by RunnableSource. It is from this method that Sources produce metric::Events.

Provided Methods

Constructs a so-called runnable source for the given Source and config.` See RunnableSource.

Implementors