Struct actix_codec::BytesCodec
source · [−]pub struct BytesCodec;
Expand description
Bytes codec. Reads/writes chunks of bytes from a stream.
Trait Implementations
sourceimpl Clone for BytesCodec
impl Clone for BytesCodec
sourcefn clone(&self) -> BytesCodec
fn clone(&self) -> BytesCodec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BytesCodec
impl Debug for BytesCodec
sourceimpl Decoder for BytesCodec
impl Decoder for BytesCodec
sourcefn 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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more