Struct gopher_core::proto::GopherServer
[−]
[src]
pub struct GopherServer;
Trait Implementations
impl ServerProto<TcpStream> for GopherServer[src]
type Request = GopherRequest
For this protocol style, Request matches the codec In type
type Response = GopherResponse
For this protocol style, Response matches the coded Out type
type Transport = Framed<TcpStream, Server>
A bit of boilerplate to hook in the codec:
type BindTransport = Result<Self::Transport, Error>
A future for initializing a transport from an I/O object. Read more
fn bind_transport(&self, io: TcpStream) -> Self::BindTransport
Build a transport from the given I/O object, using self for any configuration. Read more