pub enum Http3FrameParseError {
TypeVarInt(QuicVarIntParseError),
LengthVarInt(QuicVarIntParseError),
PayloadLengthNotRepresentable {
value: u64,
},
FrameLengthOverflow {
type_length: usize,
length_length: usize,
payload_length: usize,
},
PayloadTooLarge {
maximum: usize,
actual: usize,
},
IncompletePayload {
required: usize,
available: usize,
},
}Expand description
Failure to parse a structurally bounded HTTP/3 frame.
Variants§
TypeVarInt(QuicVarIntParseError)
The frame type variable-length integer is incomplete.
LengthVarInt(QuicVarIntParseError)
The payload length variable-length integer is incomplete.
PayloadLengthNotRepresentable
The encoded payload length cannot be represented as usize.
FrameLengthOverflow
Adding the encoded header and payload lengths overflows usize.
Fields
PayloadTooLarge
The declared payload exceeds the caller-provided maximum.
IncompletePayload
The complete frame is not available.
Trait Implementations§
Source§impl Clone for Http3FrameParseError
impl Clone for Http3FrameParseError
impl Copy for Http3FrameParseError
Source§impl Debug for Http3FrameParseError
impl Debug for Http3FrameParseError
Source§impl Display for Http3FrameParseError
impl Display for Http3FrameParseError
impl Eq for Http3FrameParseError
Source§impl Error for Http3FrameParseError
impl Error for Http3FrameParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for Http3FrameParseError
impl PartialEq for Http3FrameParseError
impl StructuralPartialEq for Http3FrameParseError
Auto Trait Implementations§
impl Freeze for Http3FrameParseError
impl RefUnwindSafe for Http3FrameParseError
impl Send for Http3FrameParseError
impl Sync for Http3FrameParseError
impl Unpin for Http3FrameParseError
impl UnsafeUnpin for Http3FrameParseError
impl UnwindSafe for Http3FrameParseError
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