pub struct UncompressedFrameDecoder { /* private fields */ }
Expand description
Post-V5 decoder with support for envelope frames with CRC checksum.
Trait Implementations§
Source§impl Clone for UncompressedFrameDecoder
impl Clone for UncompressedFrameDecoder
Source§fn clone(&self) -> UncompressedFrameDecoder
fn clone(&self) -> UncompressedFrameDecoder
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 UncompressedFrameDecoder
impl Debug for UncompressedFrameDecoder
Source§impl Default for UncompressedFrameDecoder
impl Default for UncompressedFrameDecoder
Source§fn default() -> UncompressedFrameDecoder
fn default() -> UncompressedFrameDecoder
Returns the “default value” for a type. Read more
Source§impl FrameDecoder for UncompressedFrameDecoder
impl FrameDecoder for UncompressedFrameDecoder
Source§fn consume(
&mut self,
data: &mut Vec<u8>,
_compression: Compression,
) -> Result<Vec<Envelope>>
fn consume( &mut self, data: &mut Vec<u8>, _compression: Compression, ) -> Result<Vec<Envelope>>
Consumes some data and returns decoded envelopes. Decoders can be stateful, so data can be
buffered until envelopes can be parsed.
The buffer passed in should be cleared of consumed data by the decoder.
Auto Trait Implementations§
impl Freeze for UncompressedFrameDecoder
impl RefUnwindSafe for UncompressedFrameDecoder
impl Send for UncompressedFrameDecoder
impl Sync for UncompressedFrameDecoder
impl Unpin for UncompressedFrameDecoder
impl UnwindSafe for UncompressedFrameDecoder
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more