Struct cassandra_protocol::frame::frame_decoder::LegacyFrameDecoder
source · [−]pub struct LegacyFrameDecoder { /* private fields */ }
Expand description
Pre-V5 frame decoder which simply decodes one envelope directly into a buffer.
Trait Implementations
sourceimpl Clone for LegacyFrameDecoder
impl Clone for LegacyFrameDecoder
sourcefn clone(&self) -> LegacyFrameDecoder
fn clone(&self) -> LegacyFrameDecoder
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 LegacyFrameDecoder
impl Debug for LegacyFrameDecoder
sourceimpl Default for LegacyFrameDecoder
impl Default for LegacyFrameDecoder
sourceimpl FrameDecoder for LegacyFrameDecoder
impl FrameDecoder for LegacyFrameDecoder
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 LegacyFrameDecoder
impl Send for LegacyFrameDecoder
impl Sync for LegacyFrameDecoder
impl Unpin for LegacyFrameDecoder
impl UnwindSafe for LegacyFrameDecoder
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