Trait cernan::source::TCPStreamHandler
[−]
[src]
pub trait TCPStreamHandler: 'static + Default + Clone + Sync + Send { fn handle_stream(&mut self, _: Channel, _: &Poll, _: TcpStream); fn new() -> Self { ... } }
Simple single threaded TCP Stream handler.
Required Methods
fn handle_stream(&mut self, _: Channel, _: &Poll, _: TcpStream)
Handler for a single HTTP request.
Provided Methods
fn new() -> Self
Constructs a new handler for mio::net::TCPStreams.