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]
impl From<GraphiteConfig> for TCPConfig
fn from(item: GraphiteConfig) -> Self
[src]
fn from(item: GraphiteConfig) -> Self
Performs the conversion.
impl From<NativeServerConfig> for TCPConfig
[src]
impl From<NativeServerConfig> for TCPConfig
fn from(item: NativeServerConfig) -> Self
[src]
fn from(item: NativeServerConfig) -> Self
Performs the conversion.
impl Debug for TCPConfig
[src]
impl Debug for TCPConfig
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for TCPConfig
[src]
impl Clone for TCPConfig
fn clone(&self) -> TCPConfig
[src]
fn clone(&self) -> TCPConfig
Returns 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 TCPConfig
[src]
impl Default for TCPConfig
impl<H> Source<TCPConfig> for TCP<H> where
H: TCPStreamHandler,
[src]
impl<H> Source<TCPConfig> for TCP<H> where
H: TCPStreamHandler,
fn init(config: TCPConfig) -> Self
[src]
fn init(config: TCPConfig) -> Self
Constructs and starts a new TCP source.
fn run(self, chans: Channel, poller: Poll)
[src]
fn run(self, chans: Channel, poller: Poll)
Starts the accept loop.
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