[−][src]Trait futures_codec::Encoder
Encoding of messages as bytes, for use with FramedWrite
.
Associated Types
Loading content...Required methods
fn encode(
&mut self,
item: Self::Item,
dst: &mut BytesMut
) -> Result<(), Self::Error>
&mut self,
item: Self::Item,
dst: &mut BytesMut
) -> Result<(), Self::Error>
Encodes an item into the BytesMut
provided by dst.
Implementors
impl Encoder for BytesCodec
[src]
type Item = Bytes
type Error = Error
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 LengthCodec
[src]
type Item = Bytes
type Error = Error
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>