pub enum DiscardReason {
ConflictingChunk,
ConflictingCount,
TooManyFragments,
TooLarge,
InvalidFragment,
}Expand description
Why a reassembly (or a fragment that would start one) was discarded. A discard produces no response; the sender’s retry repairs it (§5.2, §7.3).
Variants§
ConflictingChunk
The same index arrived again with different content.
ConflictingCount
The same frag_id arrived with a different count.
TooManyFragments
count exceeds MAX_FRAGMENTS.
TooLarge
The chunks received exceed max_frame bytes.
InvalidFragment
A hand-built Fragment with count < 2 or index ≥ count (super::classify never
yields one); it is dropped without touching any reassembly.
Trait Implementations§
Source§impl Clone for DiscardReason
impl Clone for DiscardReason
Source§fn clone(&self) -> DiscardReason
fn clone(&self) -> DiscardReason
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 moreimpl Copy for DiscardReason
Source§impl Debug for DiscardReason
impl Debug for DiscardReason
impl Eq for DiscardReason
Source§impl PartialEq for DiscardReason
impl PartialEq for DiscardReason
impl StructuralPartialEq for DiscardReason
Auto Trait Implementations§
impl Freeze for DiscardReason
impl RefUnwindSafe for DiscardReason
impl Send for DiscardReason
impl Sync for DiscardReason
impl Unpin for DiscardReason
impl UnsafeUnpin for DiscardReason
impl UnwindSafe for DiscardReason
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