Trait async_codec_lite::Encoder
source · [−]pub trait Encoder {
type Item;
type Error: Error + 'static;
fn encode(
&mut self,
item: Self::Item,
dst: &mut BytesMut
) -> Result<(), Self::Error>;
}
pub trait Encoder {
type Item;
type Error: Error + 'static;
fn encode(
&mut self,
item: Self::Item,
dst: &mut BytesMut
) -> Result<(), Self::Error>;
}