pub enum QuicTransportParameterValueError {
WrongId {
kind: QuicTransportParameterValueKind,
actual: QuicTransportParameterId,
},
MalformedInteger {
error: QuicVarIntParseError,
},
TrailingIntegerBytes {
parsed: usize,
available: usize,
},
WrongLength {
kind: QuicTransportParameterValueKind,
expected: usize,
actual: usize,
},
ConnectionIdTooLong {
maximum: usize,
actual: usize,
},
PreferredAddressConnectionIdLength {
actual: u8,
},
PreferredAddressIncomplete {
offset: usize,
required: usize,
available: usize,
},
PreferredAddressTrailingBytes {
offset: usize,
available: usize,
},
}Expand description
Failure to interpret one raw transport-parameter value as an RFC 9000 payload layout.
Offsets in preferred-address errors are relative to the parameter value, not to an enclosing extension payload.
Variants§
WrongId
The accessor does not apply to this parameter ID.
Fields
§
kind: QuicTransportParameterValueKindRequested payload layout.
§
actual: QuicTransportParameterIdActual decoded parameter ID.
MalformedInteger
The integer payload is empty or ends before its encoded width.
Fields
§
error: QuicVarIntParseErrorExact variable-integer parsing failure.
TrailingIntegerBytes
Bytes follow an otherwise complete integer payload.
WrongLength
A fixed-size payload has the wrong length.
Fields
§
kind: QuicTransportParameterValueKindRequested payload layout.
ConnectionIdTooLong
A connection-ID payload exceeds RFC 9000’s version-1 bound.
PreferredAddressConnectionIdLength
The preferred-address connection-ID length is outside 1..=20.
PreferredAddressIncomplete
A preferred-address field is incomplete.
Fields
PreferredAddressTrailingBytes
Bytes follow the complete preferred-address payload.
Trait Implementations§
impl Copy for QuicTransportParameterValueError
impl Eq for QuicTransportParameterValueError
impl StructuralPartialEq for QuicTransportParameterValueError
Auto Trait Implementations§
impl Freeze for QuicTransportParameterValueError
impl RefUnwindSafe for QuicTransportParameterValueError
impl Send for QuicTransportParameterValueError
impl Sync for QuicTransportParameterValueError
impl Unpin for QuicTransportParameterValueError
impl UnsafeUnpin for QuicTransportParameterValueError
impl UnwindSafe for QuicTransportParameterValueError
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