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