Struct cernan::source::NativeServerConfig [−][src]
pub struct NativeServerConfig { pub ip: String, pub port: u16, pub forwards: Vec<String>, pub config_path: Option<String>, }
The native source
This source is the pair to the native sink. The native source/sink use or
consume cernan's native protocol, defined
resources/protobufs/native.proto
. Clients may use the native protocol
without having to obey the translation required in other sources or
operators may set up cernan to cernan communication.
Configuration for the native source
Fields
ip: String
The IP address the native source will bind to.
port: u16
The port the source will listen on.
forwards: Vec<String>
The forwards for the native source to send its Telemetry along.
config_path: Option<String>
The unique name for the source in the routing topology.
Trait Implementations
impl Debug for NativeServerConfig
[src]
impl Debug for NativeServerConfig
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 NativeServerConfig
[src]
impl Clone for NativeServerConfig
fn clone(&self) -> NativeServerConfig
[src]
fn clone(&self) -> NativeServerConfig
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 NativeServerConfig
[src]
impl Default for NativeServerConfig
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.
Auto Trait Implementations
impl Send for NativeServerConfig
impl Send for NativeServerConfig
impl Sync for NativeServerConfig
impl Sync for NativeServerConfig