Trait ntex_codec::Encoder [−][src]
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
fn encode(
&self,
item: Self::Item,
dst: &mut BytesMut
) -> Result<(), Self::Error>
[src]
&self,
item: Self::Item,
dst: &mut BytesMut
) -> Result<(), Self::Error>
Encodes a frame into the buffer provided.
Implementations on Foreign Types
impl<T> Encoder for Rc<T> where
T: Encoder,
[src]
T: Encoder,
type Item = T::Item
type Error = T::Error
fn encode(
&self,
item: Self::Item,
dst: &mut BytesMut
) -> Result<(), Self::Error>
[src]
&self,
item: Self::Item,
dst: &mut BytesMut
) -> Result<(), Self::Error>