pub struct ServerCodec;
Expand description
A codec for building a Gopher server.
Trait Implementations§
Source§impl Decoder for ServerCodec
impl Decoder for ServerCodec
Source§type Item = GopherRequest
type Item = GopherRequest
The type of decoded frames.
Source§fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Encoder for ServerCodec
impl Encoder for ServerCodec
Auto Trait Implementations§
impl Freeze for ServerCodec
impl RefUnwindSafe for ServerCodec
impl Send for ServerCodec
impl Sync for ServerCodec
impl Unpin for ServerCodec
impl UnwindSafe for ServerCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more