pub struct LegacyFrameDecoder { /* private fields */ }
Expand description
Pre-V5 frame decoder which simply decodes one envelope directly into a buffer.
Trait Implementations§
Source§impl Clone for LegacyFrameDecoder
impl Clone for LegacyFrameDecoder
Source§fn clone(&self) -> LegacyFrameDecoder
fn clone(&self) -> LegacyFrameDecoder
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 LegacyFrameDecoder
impl Debug for LegacyFrameDecoder
Source§impl Default for LegacyFrameDecoder
impl Default for LegacyFrameDecoder
Source§impl FrameDecoder for LegacyFrameDecoder
impl FrameDecoder for LegacyFrameDecoder
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 LegacyFrameDecoder
impl RefUnwindSafe for LegacyFrameDecoder
impl Send for LegacyFrameDecoder
impl Sync for LegacyFrameDecoder
impl Unpin for LegacyFrameDecoder
impl UnwindSafe for LegacyFrameDecoder
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