Skip to main content

QuicFrameParseError

Enum QuicFrameParseError 

Source
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

§offset: usize

Absolute byte offset of the frame type from the sequence start.

§error: QuicVarIntParseError

Exact variable-integer parsing failure.

§

Field

A semantic frame field variable integer is incomplete at the indicated sequence offset.

Fields

§field: QuicFrameField

Semantic field whose variable integer could not be parsed.

§offset: usize

Absolute byte offset of the field from the sequence start.

§error: QuicVarIntParseError

Exact variable-integer parsing failure.

§

FieldValueOutOfRange

A semantic frame field exceeds its RFC-defined maximum value.

Fields

§field: QuicFrameField

Semantic field whose decoded value exceeds its maximum.

§offset: usize

Absolute byte offset of the field from the sequence start.

§value: u64

Decoded field value.

§maximum: u64

Greatest permitted field value.

§

FieldValueExceedsField

A semantic frame field exceeds the decoded value of another field.

Fields

§field: QuicFrameField

Semantic field whose decoded value is too large.

§offset: usize

Absolute byte offset of the field from the sequence start.

§value: u64

Decoded field value.

§maximum_field: QuicFrameField

Semantic field supplying the maximum value.

§maximum: u64

Decoded maximum-field value.

§

FieldRangeOutOfRange

A decoded frame byte range exceeds its RFC-defined maximum end offset.

Fields

§field: QuicFrameField

Semantic field encoding the decoded range start.

§offset: usize

Absolute byte offset of the encoded range-start field from the sequence start.

§start: u64

Decoded range start.

§length: u64

Decoded range length.

§maximum: u64

Greatest permitted decoded range end.

§

LengthNotRepresentable

A decoded bounded-byte field length cannot be represented as usize on this target.

Fields

§field: QuicFrameField

Semantic field whose length cannot be represented.

§offset: usize

Absolute byte offset of the encoded length from the sequence start.

§value: u64

Decoded wire length.

§

ImplicitLengthNotRepresentable

An implicit bounded-byte field length cannot be represented as u64.

Fields

§field: QuicFrameField

Semantic field whose implicit length cannot be represented.

§offset: usize

Absolute byte offset of the bounded byte field from the sequence start.

§length: usize

Native byte length derived from the supplied slice.

§

LengthOverflow

Computing the end of a bounded-byte field overflows usize.

Fields

§field: QuicFrameField

Semantic bounded-byte field whose end cannot be represented.

§offset: usize

Absolute byte offset of the bounded byte field from the sequence start.

§length: usize

Representable bounded byte-field length.

§

IncompleteBytes

A bounded-byte field is incomplete.

Fields

§field: QuicFrameField

Semantic bounded-byte field that is incomplete.

§offset: usize

Absolute byte offset of the bounded byte field from the sequence start.

§required: usize

Bytes required by the bounded byte field.

§available: usize

Bytes available for the bounded byte field.

§

EmptyField

A semantically required nonempty field is empty.

Fields

§field: QuicFrameField

Semantic field that must not be empty.

§offset: usize

Absolute byte offset of the field from the sequence start.

§

AckRangeUnderflow

Computing an ACK range packet number would be negative.

Fields

§field: QuicFrameField

ACK field whose encoded value caused the underflow.

§offset: usize

Absolute byte offset of the encoded field from the sequence start.

§base: u64

Packet number before subtracting this field.

§value: u64

Decoded field value being subtracted.

§adjustment: u64

Additional fixed adjustment applied after value.

§

UnsupportedFrameType

The frame type has no safe boundary without implementing its type-specific layout.

Fields

§value: u64

Decoded raw frame-type value.

§length: QuicVarIntLen

Exact encoded frame-type width.

§offset: usize

Absolute byte offset of the frame type from the sequence start.

Trait Implementations§

Source§

impl Clone for QuicFrameParseError

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for QuicFrameParseError

Source§

impl Debug for QuicFrameParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for QuicFrameParseError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for QuicFrameParseError

Source§

impl PartialEq for QuicFrameParseError

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for QuicFrameParseError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.