Struct cassandra_protocol::frame::frame_decoder::Lz4FrameDecoder
source · pub struct Lz4FrameDecoder { /* private fields */ }
Expand description
Post-V5 Lz4 decoder with support for envelope frames with CRC checksum.
Trait Implementations§
source§impl Clone for Lz4FrameDecoder
impl Clone for Lz4FrameDecoder
source§fn clone(&self) -> Lz4FrameDecoder
fn clone(&self) -> Lz4FrameDecoder
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 Lz4FrameDecoder
impl Debug for Lz4FrameDecoder
source§impl Default for Lz4FrameDecoder
impl Default for Lz4FrameDecoder
source§fn default() -> Lz4FrameDecoder
fn default() -> Lz4FrameDecoder
Returns the “default value” for a type. Read more
source§impl FrameDecoder for Lz4FrameDecoder
impl FrameDecoder for Lz4FrameDecoder
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 Lz4FrameDecoder
impl RefUnwindSafe for Lz4FrameDecoder
impl Send for Lz4FrameDecoder
impl Sync for Lz4FrameDecoder
impl Unpin for Lz4FrameDecoder
impl UnwindSafe for Lz4FrameDecoder
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> 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