Struct cernan::source::TCP [−][src]
pub struct TCP<H> { /* fields omitted */ }
State for a TCP backed source.
Trait Implementations
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