pub enum QuicFrameParseError {
Show 13 variants
EmptySequence,
FrameType {
offset: usize,
error: QuicVarIntParseError,
},
Field {
field: QuicFrameField,
offset: usize,
error: QuicVarIntParseError,
},
FieldValueOutOfRange {
field: QuicFrameField,
offset: usize,
value: u64,
maximum: u64,
},
FieldValueExceedsField {
field: QuicFrameField,
offset: usize,
value: u64,
maximum_field: QuicFrameField,
maximum: u64,
},
FieldRangeOutOfRange {
field: QuicFrameField,
offset: usize,
start: u64,
length: u64,
maximum: u64,
},
LengthNotRepresentable {
field: QuicFrameField,
offset: usize,
value: u64,
},
ImplicitLengthNotRepresentable {
field: QuicFrameField,
offset: usize,
length: usize,
},
LengthOverflow {
field: QuicFrameField,
offset: usize,
length: usize,
},
IncompleteBytes {
field: QuicFrameField,
offset: usize,
required: usize,
available: usize,
},
EmptyField {
field: QuicFrameField,
offset: usize,
},
AckRangeUnderflow {
field: QuicFrameField,
offset: usize,
base: u64,
value: u64,
adjustment: u64,
},
UnsupportedFrameType {
value: u64,
length: QuicVarIntLen,
offset: usize,
},
}Expand description
Failure to parse a QUIC plaintext frame sequence.
Variants§
EmptySequence
The supplied plaintext frame sequence contains no frames.
FrameType
The frame-type variable integer is incomplete at the indicated sequence offset.
Fields
error: QuicVarIntParseErrorExact variable-integer parsing failure.
Field
A semantic frame field variable integer is incomplete at the indicated sequence offset.
Fields
field: QuicFrameFieldSemantic field whose variable integer could not be parsed.
error: QuicVarIntParseErrorExact variable-integer parsing failure.
FieldValueOutOfRange
A semantic frame field exceeds its RFC-defined maximum value.
Fields
field: QuicFrameFieldSemantic field whose decoded value exceeds its maximum.
FieldValueExceedsField
A semantic frame field exceeds the decoded value of another field.
Fields
field: QuicFrameFieldSemantic field whose decoded value is too large.
maximum_field: QuicFrameFieldSemantic field supplying the maximum value.
FieldRangeOutOfRange
A decoded frame byte range exceeds its RFC-defined maximum end offset.
Fields
field: QuicFrameFieldSemantic field encoding the decoded range start.
LengthNotRepresentable
A decoded bounded-byte field length cannot be represented as usize on this target.
Fields
field: QuicFrameFieldSemantic field whose length cannot be represented.
ImplicitLengthNotRepresentable
An implicit bounded-byte field length cannot be represented as u64.
Fields
field: QuicFrameFieldSemantic field whose implicit length cannot be represented.
LengthOverflow
Computing the end of a bounded-byte field overflows usize.
Fields
field: QuicFrameFieldSemantic bounded-byte field whose end cannot be represented.
IncompleteBytes
A bounded-byte field is incomplete.
Fields
field: QuicFrameFieldSemantic bounded-byte field that is incomplete.
EmptyField
A semantically required nonempty field is empty.
Fields
field: QuicFrameFieldSemantic field that must not be empty.
AckRangeUnderflow
Computing an ACK range packet number would be negative.
Fields
field: QuicFrameFieldACK field whose encoded value caused the underflow.
UnsupportedFrameType
The frame type has no safe boundary without implementing its type-specific layout.