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 const 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 duplicate 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
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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