Struct cernan::source::StatsdConfig [−][src]
pub struct StatsdConfig {
pub host: String,
pub port: u16,
pub forwards: Vec<String>,
pub config_path: Option<String>,
pub parse_config: StatsdParseConfig,
}Configuration for the statsd source.
Fields
host: String
The host for the statsd protocol to bind to.
port: u16
The port for the statsd source to listen on.
forwards: Vec<String>
The forwards that statsd will send its telemetry on to.
config_path: Option<String>
The unique name for the source in the routing topology.
parse_config: StatsdParseConfig
Configuration for the parsing of statsd lines
Trait Implementations
impl Debug for StatsdConfig[src]
impl Debug for StatsdConfigfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for StatsdConfig[src]
impl Clone for StatsdConfigfn clone(&self) -> StatsdConfig[src]
fn clone(&self) -> StatsdConfigReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for StatsdConfig[src]
impl Default for StatsdConfigfn default() -> StatsdConfig[src]
fn default() -> StatsdConfigReturns the "default value" for a type. Read more
impl Source<StatsdConfig> for Statsd[src]
impl Source<StatsdConfig> for Statsdfn init(config: StatsdConfig) -> Self[src]
fn init(config: StatsdConfig) -> SelfCreate and spawn a new statsd source
fn run(self, chans: Channel, poller: Poll)[src]
fn run(self, chans: Channel, poller: Poll)Run method invoked by RunnableSource. It is from this method that Sources produce metric::Events. Read more
fn new(chans: Channel, config: SConfig) -> RunnableSource<Self, SConfig>[src]
fn new(chans: Channel, config: SConfig) -> RunnableSource<Self, SConfig>Constructs a so-called runnable source for the given Source and config.` See RunnableSource. Read more
Auto Trait Implementations
impl Send for StatsdConfig
impl Send for StatsdConfigimpl Sync for StatsdConfig
impl Sync for StatsdConfig