Struct kanidm_unixd::ClientCodec
source · pub(crate) struct ClientCodec;
Implementations§
source§impl ClientCodec
impl ClientCodec
Trait Implementations§
source§impl Decoder for ClientCodec
impl Decoder for ClientCodec
§type Item = ClientRequest
type Item = ClientRequest
The type of decoded frames.
source§fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
§fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::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