pub struct EnvelopeRecord { /* private fields */ }Implementations§
Source§impl EnvelopeRecord
impl EnvelopeRecord
pub fn headers(&self) -> &[Header]
pub fn body(&self) -> &Bytes
Sourcepub fn headers_total_bytes(&self) -> usize
pub fn headers_total_bytes(&self) -> usize
Total bytes across all header names and values.
pub fn into_parts(self) -> (Vec<Header>, Bytes)
pub fn try_from_parts( headers: Vec<Header>, body: Bytes, ) -> Result<Self, RecordPartsError>
Trait Implementations§
Source§impl Clone for EnvelopeRecord
impl Clone for EnvelopeRecord
Source§fn clone(&self) -> EnvelopeRecord
fn clone(&self) -> EnvelopeRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EnvelopeRecord
impl Debug for EnvelopeRecord
Source§impl DeepSize for EnvelopeRecord
impl DeepSize for EnvelopeRecord
impl Eq for EnvelopeRecord
Source§impl MeteredSize for EnvelopeRecord
impl MeteredSize for EnvelopeRecord
Source§fn metered_size(&self) -> usize
fn metered_size(&self) -> usize
Return the metered size of a record or batch of records.
Source§impl PartialEq for EnvelopeRecord
impl PartialEq for EnvelopeRecord
Source§fn eq(&self, other: &EnvelopeRecord) -> bool
fn eq(&self, other: &EnvelopeRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnvelopeRecord
Auto Trait Implementations§
impl !Freeze for EnvelopeRecord
impl RefUnwindSafe for EnvelopeRecord
impl Send for EnvelopeRecord
impl Sync for EnvelopeRecord
impl Unpin for EnvelopeRecord
impl UnsafeUnpin for EnvelopeRecord
impl UnwindSafe for EnvelopeRecord
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