Struct gopher_core::codec::Server
[−]
[src]
pub struct Server;
Trait Implementations
impl Codec for Server
[src]
type In = GopherRequest
The type of decoded frames.
type Out = GopherResponse
The type of frames to be encoded.
fn decode(&mut self, buf: &mut EasyBuf) -> Result<Option<GopherRequest>>
Attempts to decode a frame from the provided buffer of bytes. Read more
fn encode(&mut self, msg: GopherResponse, buf: &mut Vec<u8>) -> Result<()>
Encodes a frame into the buffer provided. Read more
fn decode_eof(&mut self, buf: &mut EasyBuf) -> Result<Self::In, Error>
A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more