Struct actix_net::codec::BytesCodec
source · pub struct BytesCodec;
Expand description
Bytes codec.
Reads/Writes chunks of bytes from a stream.
Trait Implementations§
source§impl Clone for BytesCodec
impl Clone for BytesCodec
source§fn clone(&self) -> BytesCodec
fn clone(&self) -> BytesCodec
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BytesCodec
impl Debug for BytesCodec
source§impl Decoder for BytesCodec
impl Decoder for BytesCodec
source§fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
fn decode(
&mut self,
src: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more