#[non_exhaustive]pub enum PacketDropReason<'a> {
ConnectionError {
path: Path<'a>,
},
HandshakeNotComplete {
path: Path<'a>,
},
VersionMismatch {
version: u32,
path: Path<'a>,
},
ConnectionIdMismatch {
packet_cid: &'a [u8],
path: Path<'a>,
},
UnprotectFailed {
space: KeySpace,
path: Path<'a>,
},
DecryptionFailed {
path: Path<'a>,
packet_header: PacketHeader,
},
DecodingFailed {
path: Path<'a>,
},
NonEmptyRetryToken {
path: Path<'a>,
},
RetryDiscarded {
reason: RetryDiscardReason<'a>,
path: Path<'a>,
},
UndersizedInitialPacket {
path: Path<'a>,
},
InitialConnectionIdInvalidSpace {
path: Path<'a>,
packet_type: PacketType,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConnectionError
A connection error occurred and is no longer able to process packets.
Fields
This variant is marked as non-exhaustive
HandshakeNotComplete
The handshake needed to be complete before processing the packet.
To ensure the connection stays secure, short packets can only be processed once the handshake has completed.
Fields
This variant is marked as non-exhaustive
VersionMismatch
The packet contained a version which did not match the version negotiated during the handshake.
Fields
This variant is marked as non-exhaustive
ConnectionIdMismatch
A datagram contained more than one destination connection ID, which is not allowed.
Fields
This variant is marked as non-exhaustive
UnprotectFailed
There was a failure when attempting to remove header protection.
Fields
This variant is marked as non-exhaustive
DecryptionFailed
There was a failure when attempting to decrypt the packet.
Fields
This variant is marked as non-exhaustive
packet_header: PacketHeader
DecodingFailed
Packet decoding failed.
The payload is decoded one packet at a time. If decoding fails then the remaining packets are also discarded.
Fields
This variant is marked as non-exhaustive
NonEmptyRetryToken
The client received a non-empty retry token.
Fields
This variant is marked as non-exhaustive
RetryDiscarded
A Retry packet was discarded.
Fields
This variant is marked as non-exhaustive
reason: RetryDiscardReason<'a>
UndersizedInitialPacket
The received Initial packet was not transported in a datagram of at least 1200 bytes
Fields
This variant is marked as non-exhaustive
InitialConnectionIdInvalidSpace
The destination connection ID in the packet was the initial connection ID but was in a non-initial packet.
Fields
This variant is marked as non-exhaustive
packet_type: PacketType
Trait Implementations§
source§impl<'a> Clone for PacketDropReason<'a>
impl<'a> Clone for PacketDropReason<'a>
source§fn clone(&self) -> PacketDropReason<'a>
fn clone(&self) -> PacketDropReason<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more