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
sourceimpl Clone for Lz4FrameDecoder
impl Clone for Lz4FrameDecoder
sourcefn clone(&self) -> Lz4FrameDecoder
fn clone(&self) -> Lz4FrameDecoder
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 Lz4FrameDecoder
impl Debug for Lz4FrameDecoder
sourceimpl Default for Lz4FrameDecoder
impl Default for Lz4FrameDecoder
sourcefn default() -> Lz4FrameDecoder
fn default() -> Lz4FrameDecoder
Returns the “default value” for a type. Read more
sourceimpl FrameDecoder for Lz4FrameDecoder
impl FrameDecoder for Lz4FrameDecoder
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 Lz4FrameDecoder
impl Send for Lz4FrameDecoder
impl Sync for Lz4FrameDecoder
impl Unpin for Lz4FrameDecoder
impl UnwindSafe for Lz4FrameDecoder
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