pub enum SegmentOutcome {
Complete(Vec<u8>),
Pending,
Control(Vec<u8>),
}Expand description
What SegmentReassembler::push did with the frame it was given.
Variants§
Complete(Vec<u8>)
A complete message: the first segment’s header with the segment bits
cleared and payload_length rewritten to the concatenated total,
followed by the concatenated payloads.
Pending
A first or middle segment was absorbed. Push more frames.
Control(Vec<u8>)
A control frame, returned verbatim. Reassembly state is untouched — control frames are legal between the segments of one message.
Trait Implementations§
Source§impl Clone for SegmentOutcome
impl Clone for SegmentOutcome
Source§fn clone(&self) -> SegmentOutcome
fn clone(&self) -> SegmentOutcome
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 SegmentOutcome
impl Debug for SegmentOutcome
impl Eq for SegmentOutcome
Source§impl PartialEq for SegmentOutcome
impl PartialEq for SegmentOutcome
impl StructuralPartialEq for SegmentOutcome
Auto Trait Implementations§
impl Freeze for SegmentOutcome
impl RefUnwindSafe for SegmentOutcome
impl Send for SegmentOutcome
impl Sync for SegmentOutcome
impl Unpin for SegmentOutcome
impl UnsafeUnpin for SegmentOutcome
impl UnwindSafe for SegmentOutcome
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