pub struct ChunksCodec(/* private fields */);Implementations§
Source§impl ChunksCodec
impl ChunksCodec
pub fn new(len: u32) -> ChunksCodec
Trait Implementations§
Source§impl Clone for ChunksCodec
impl Clone for ChunksCodec
Source§fn clone(&self) -> ChunksCodec
fn clone(&self) -> ChunksCodec
Returns a duplicate 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 ChunksCodec
impl Debug for ChunksCodec
Source§impl Decoder for ChunksCodec
impl Decoder for ChunksCodec
Source§fn decode(
&mut self,
buf: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, buf: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
impl Copy for ChunksCodec
Auto Trait Implementations§
impl Freeze for ChunksCodec
impl RefUnwindSafe for ChunksCodec
impl Send for ChunksCodec
impl Sync for ChunksCodec
impl Unpin for ChunksCodec
impl UnwindSafe for ChunksCodec
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