Struct swimos_encoding::WithLengthBytesCodec
source · pub struct WithLengthBytesCodec;Expand description
Codec that will encode the length of an array of bytes, as a 64bit unsigned integer, followed by its contents.
Trait Implementations§
source§impl Clone for WithLengthBytesCodec
impl Clone for WithLengthBytesCodec
source§fn clone(&self) -> WithLengthBytesCodec
fn clone(&self) -> WithLengthBytesCodec
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 WithLengthBytesCodec
impl Debug for WithLengthBytesCodec
source§impl Decoder for WithLengthBytesCodec
impl Decoder for WithLengthBytesCodec
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 Default for WithLengthBytesCodec
impl Default for WithLengthBytesCodec
source§fn default() -> WithLengthBytesCodec
fn default() -> WithLengthBytesCodec
Returns the “default value” for a type. Read more
impl Copy for WithLengthBytesCodec
Auto Trait Implementations§
impl Freeze for WithLengthBytesCodec
impl RefUnwindSafe for WithLengthBytesCodec
impl Send for WithLengthBytesCodec
impl Sync for WithLengthBytesCodec
impl Unpin for WithLengthBytesCodec
impl UnwindSafe for WithLengthBytesCodec
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)