pub enum QuicTransportParameterParseError {
IncompleteVarInt {
field: QuicTransportParameterField,
offset: usize,
error: QuicVarIntParseError,
},
LengthNotRepresentable {
offset: usize,
value: u64,
},
LengthOverflow {
offset: usize,
length: usize,
},
IncompleteValue {
offset: usize,
required: usize,
available: usize,
},
DuplicateId {
id: QuicTransportParameterId,
first_offset: usize,
duplicate_offset: usize,
},
}Expand description
Failure to parse a QUIC transport-parameter extension payload.
Variants§
IncompleteVarInt
A tuple variable integer is incomplete.
Fields
§
field: QuicTransportParameterFieldTuple field whose variable integer is incomplete.
§
error: QuicVarIntParseErrorExact variable-integer parsing failure.
LengthNotRepresentable
A decoded parameter length cannot be represented as usize on this target.
Fields
LengthOverflow
Computing a parameter-value end offset overflows usize.
Fields
IncompleteValue
A parameter value is incomplete.
Fields
DuplicateId
A parameter identifier occurs more than once.
Trait Implementations§
impl Copy for QuicTransportParameterParseError
impl Eq for QuicTransportParameterParseError
impl StructuralPartialEq for QuicTransportParameterParseError
Auto Trait Implementations§
impl Freeze for QuicTransportParameterParseError
impl RefUnwindSafe for QuicTransportParameterParseError
impl Send for QuicTransportParameterParseError
impl Sync for QuicTransportParameterParseError
impl Unpin for QuicTransportParameterParseError
impl UnsafeUnpin for QuicTransportParameterParseError
impl UnwindSafe for QuicTransportParameterParseError
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