Struct cernan::source::TCPConfig [] [src]

pub struct TCPConfig {
    pub config_path: Option<String>,
    pub host: String,
    pub port: u16,
    pub forwards: Vec<String>,
}

Configured for the metric::Telemetry source.

Fields

The unique name of the source in the routing topology.

The host that the source will listen on. May be an IP address or a DNS hostname.

The port that the source will listen on.

The forwards that the source will send all its Telemetry.

Trait Implementations

impl From<GraphiteConfig> for TCPConfig
[src]

[src]

Performs the conversion.

impl From<NativeServerConfig> for TCPConfig
[src]

[src]

Performs the conversion.

impl Debug for TCPConfig
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for TCPConfig
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for TCPConfig
[src]

[src]

Returns the "default value" for a type. Read more

impl<H> Source<TCPConfig> for TCP<H> where
    H: TCPStreamHandler
[src]

[src]

Constructs and starts a new TCP source.

[src]

Starts the accept loop.

[src]

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

Auto Trait Implementations

impl Send for TCPConfig

impl Sync for TCPConfig