#[non_exhaustive]pub enum DuplicatePacketError {
Duplicate {},
TooOld {},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Duplicate
The packet number was already received and is a duplicate.
TooOld
The received packet number was outside the range of tracked packet numbers.
This can happen when packets are heavily delayed or reordered. Currently, the maximum
amount of reordering is limited to 128 packets. For example, if packet number 142
is received, the allowed range would be limited to 14-142
. If an endpoint received
packet < 14
, it would trigger this event.
Trait Implementations§
source§impl Clone for DuplicatePacketError
impl Clone for DuplicatePacketError
source§fn clone(&self) -> DuplicatePacketError
fn clone(&self) -> DuplicatePacketError
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for DuplicatePacketError
impl RefUnwindSafe for DuplicatePacketError
impl Send for DuplicatePacketError
impl Sync for DuplicatePacketError
impl Unpin for DuplicatePacketError
impl UnwindSafe for DuplicatePacketError
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