[−][src]Trait async_codec_lite::Decoder
Associated Types
Loading content...Required methods
Loading content...Provided methods
Loading content...Implementors
impl Decoder for BytesCodec
[src]
type Error = Infallible
type Item = Bytes
pub fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
impl Decoder for LinesCodec
[src]
type Error = FromUtf8Error
type Item = String
pub fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
impl<C> Decoder for LimitCodec<C> where
C: DecoderWithSkipAhead,
[src]
C: DecoderWithSkipAhead,
type Error = LimitError<<C as Decoder>::Error>
type Item = <C as Decoder>::Item
pub fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
impl<Enc, Dec> Decoder for CborCodec<Enc, Dec> where
Dec: Deserialize<'de> + 'static,
[src]
Dec: Deserialize<'de> + 'static,
type Error = Error
type Item = Dec
pub fn decode(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
impl<Enc, Dec> Decoder for JsonCodec<Enc, Dec> where
Dec: Deserialize<'de> + 'static,
[src]
Dec: Deserialize<'de> + 'static,
type Error = Error
type Item = Dec
pub fn decode(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>