pub enum Http3FramePayloadParseError {
Frame(Http3FrameParseError),
WrongFrameType {
expected: Http3FrameType,
actual: Http3FrameType,
},
PayloadVarInt {
field: Http3FramePayloadField,
offset: usize,
error: QuicVarIntParseError,
},
TrailingPayload {
consumed: usize,
actual: usize,
},
}Expand description
Failure to parse the intrinsic payload layout of a standard HTTP/3 frame.
Variants§
Frame(Http3FrameParseError)
Parsing the raw HTTP/3 frame envelope failed.
WrongFrameType
The raw frame type does not match the typed view.
Fields
§
expected: Http3FrameTypeFrame type required by the typed view.
§
actual: Http3FrameTypeFrame type carried by the raw frame.
PayloadVarInt
A payload variable-length integer is malformed.
Fields
§
field: Http3FramePayloadFieldField whose variable-length integer could not be parsed.
§
error: QuicVarIntParseErrorUnderlying QUIC variable-length integer failure.
TrailingPayload
An exact-layout payload has bytes after its required field.
Trait Implementations§
Source§impl Clone for Http3FramePayloadParseError
impl Clone for Http3FramePayloadParseError
impl Copy for Http3FramePayloadParseError
Source§impl Debug for Http3FramePayloadParseError
impl Debug for Http3FramePayloadParseError
impl Eq for Http3FramePayloadParseError
Source§impl Error for Http3FramePayloadParseError
impl Error for Http3FramePayloadParseError
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()
impl StructuralPartialEq for Http3FramePayloadParseError
Auto Trait Implementations§
impl Freeze for Http3FramePayloadParseError
impl RefUnwindSafe for Http3FramePayloadParseError
impl Send for Http3FramePayloadParseError
impl Sync for Http3FramePayloadParseError
impl Unpin for Http3FramePayloadParseError
impl UnsafeUnpin for Http3FramePayloadParseError
impl UnwindSafe for Http3FramePayloadParseError
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