pub struct ScannedMessage {
pub message: Vec<u8>,
pub excess: usize,
}Expand description
A completed scan: the exact envelope bytes plus any surplus buffered
past the END frame.
Fields§
§message: Vec<u8>The complete envelope bytes (header through the END frame).
excess: usizeByte count buffered PAST the END frame — a §8.7 stream MUST end
exactly at the END frame’s last byte, so any excess is a protocol
violation (pipelining) for the caller to act on.
Trait Implementations§
Source§impl Clone for ScannedMessage
impl Clone for ScannedMessage
Source§fn clone(&self) -> ScannedMessage
fn clone(&self) -> ScannedMessage
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 ScannedMessage
impl Debug for ScannedMessage
impl Eq for ScannedMessage
Source§impl PartialEq for ScannedMessage
impl PartialEq for ScannedMessage
Source§fn eq(&self, other: &ScannedMessage) -> bool
fn eq(&self, other: &ScannedMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScannedMessage
Auto Trait Implementations§
impl Freeze for ScannedMessage
impl RefUnwindSafe for ScannedMessage
impl Send for ScannedMessage
impl Sync for ScannedMessage
impl Unpin for ScannedMessage
impl UnsafeUnpin for ScannedMessage
impl UnwindSafe for ScannedMessage
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