pub enum ReassemblyAction {
DataReady(usize),
Buffered,
Duplicate,
OverlapTrimmed(usize),
Empty,
}Expand description
Result of processing a TCP segment through the reassembly engine.
Variants§
DataReady(usize)
Segment was in-order and appended; value is bytes added to reassembled buffer.
Buffered
Segment was out-of-order and cached in the BTreeMap.
Duplicate
Segment was a total duplicate (already fully received).
OverlapTrimmed(usize)
Segment had partial overlap; value is the trimmed bytes appended.
Empty
No payload in this segment.
Trait Implementations§
Source§impl Clone for ReassemblyAction
impl Clone for ReassemblyAction
Source§fn clone(&self) -> ReassemblyAction
fn clone(&self) -> ReassemblyAction
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 ReassemblyAction
impl Debug for ReassemblyAction
Source§impl PartialEq for ReassemblyAction
impl PartialEq for ReassemblyAction
impl Eq for ReassemblyAction
impl StructuralPartialEq for ReassemblyAction
Auto Trait Implementations§
impl Freeze for ReassemblyAction
impl RefUnwindSafe for ReassemblyAction
impl Send for ReassemblyAction
impl Sync for ReassemblyAction
impl Unpin for ReassemblyAction
impl UnsafeUnpin for ReassemblyAction
impl UnwindSafe for ReassemblyAction
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