Struct gopher_core::proto::GopherServer
[−]
[src]
pub struct GopherServer;
Trait Implementations
impl<T: Io + 'static> ServerProto<T> for GopherServer
[src]
type Request = GopherRequest
Request headers.
type RequestBody = Void
Request body chunks.
type Response = GopherResponse
Response headers.
type ResponseBody = EasyBuf
Response body chunks.
type Error = Error
Errors, which are used both for error frames and for the service itself.
type Transport = OneShot<Framed<T, ServerCodec>>
The frame transport, which usually take T
as a parameter.
type BindTransport = Result<Self::Transport, Error>
A future for initializing a transport from an I/O object. Read more
fn bind_transport(&self, io: T) -> Self::BindTransport
Build a transport from the given I/O object, using self
for any configuration. Read more