pub struct UncompressedFrameDecoder { /* private fields */ }
Expand description
Post-V5 decoder with support for envelope frames with CRC checksum.
Trait Implementations
sourceimpl Clone for UncompressedFrameDecoder
impl Clone for UncompressedFrameDecoder
sourcefn clone(&self) -> UncompressedFrameDecoder
fn clone(&self) -> UncompressedFrameDecoder
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 moresourceimpl Debug for UncompressedFrameDecoder
impl Debug for UncompressedFrameDecoder
sourceimpl Default for UncompressedFrameDecoder
impl Default for UncompressedFrameDecoder
sourcefn default() -> UncompressedFrameDecoder
fn default() -> UncompressedFrameDecoder
Returns the “default value” for a type. Read more
sourceimpl FrameDecoder for UncompressedFrameDecoder
impl FrameDecoder for UncompressedFrameDecoder
sourcefn 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. Read more
Auto Trait Implementations
impl RefUnwindSafe for UncompressedFrameDecoder
impl Send for UncompressedFrameDecoder
impl Sync for UncompressedFrameDecoder
impl Unpin for UncompressedFrameDecoder
impl UnwindSafe for UncompressedFrameDecoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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