Struct cassandra_protocol::frame::ParsedEnvelope
source · pub struct ParsedEnvelope {
pub envelope_len: usize,
pub envelope: Envelope,
}Fields§
§envelope_len: usizeHow many bytes from the buffer have been read.
envelope: EnvelopeThe parsed envelope.
Implementations§
source§impl ParsedEnvelope
impl ParsedEnvelope
pub fn new(envelope_len: usize, envelope: Envelope) -> ParsedEnvelope
Trait Implementations§
source§impl Clone for ParsedEnvelope
impl Clone for ParsedEnvelope
source§fn clone(&self) -> ParsedEnvelope
fn clone(&self) -> ParsedEnvelope
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 ParsedEnvelope
impl Debug for ParsedEnvelope
source§impl Hash for ParsedEnvelope
impl Hash for ParsedEnvelope
source§impl PartialEq for ParsedEnvelope
impl PartialEq for ParsedEnvelope
source§fn eq(&self, other: &ParsedEnvelope) -> bool
fn eq(&self, other: &ParsedEnvelope) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ParsedEnvelope
impl StructuralPartialEq for ParsedEnvelope
Auto Trait Implementations§
impl Freeze for ParsedEnvelope
impl RefUnwindSafe for ParsedEnvelope
impl Send for ParsedEnvelope
impl Sync for ParsedEnvelope
impl Unpin for ParsedEnvelope
impl UnwindSafe for ParsedEnvelope
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