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
config_path: Option<String>
The unique name of the source in the routing topology.
host: String
The host that the source will listen on. May be an IP address or a DNS hostname.
port: u16
The port that the source will listen on.
forwards: Vec<String>
The forwards that the source will send all its Telemetry.
Trait Implementations
impl From<GraphiteConfig> for TCPConfig
[src]
fn from(item: GraphiteConfig) -> Self
[src]
Performs the conversion.
impl From<NativeServerConfig> for TCPConfig
[src]
fn from(item: NativeServerConfig) -> Self
[src]
Performs the conversion.
impl Debug for TCPConfig
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for TCPConfig
[src]
fn clone(&self) -> TCPConfig
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for TCPConfig
[src]
impl<H> Source<TCPConfig> for TCP<H> where
H: TCPStreamHandler,
[src]
H: TCPStreamHandler,
fn init(config: TCPConfig) -> Self
[src]
Constructs and starts a new TCP source.
fn run(self, chans: Channel, poller: Poll)
[src]
Starts the accept loop.
fn new(chans: Channel, config: SConfig) -> RunnableSource<Self, SConfig>
[src]
Constructs a so-called runnable source for the given Source and config.` See RunnableSource. Read more