Struct kanidm_unixd_tasks::TaskCodec
source · pub(crate) struct TaskCodec;
Implementations§
Trait Implementations§
source§impl Decoder for TaskCodec
impl Decoder for TaskCodec
§type Item = TaskRequest
type Item = TaskRequest
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