[−][src]Trait ntex_codec::Encoder
Trait of helper objects to write out messages as bytes.
Associated Types
type Item[src]
The type of items consumed by the Encoder
type Error: Debug[src]
The type of encoding errors.
Required methods
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>
Encodes a frame into the buffer provided.