Struct actix_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
source§impl Encoder<Bytes> for BytesCodec
impl Encoder<Bytes> for BytesCodec
impl Copy for BytesCodec
Auto Trait Implementations§
impl RefUnwindSafe for BytesCodec
impl Send for BytesCodec
impl Sync for BytesCodec
impl Unpin for BytesCodec
impl UnwindSafe for BytesCodec
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more