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§
source§impl Clone for LegacyFrameDecoder
impl Clone for LegacyFrameDecoder
source§fn clone(&self) -> LegacyFrameDecoder
fn clone(&self) -> LegacyFrameDecoder
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 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> 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