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.