#[non_exhaustive]pub enum ParsedRequestError {
BodyTooLarge,
Other(String),
}Expand description
Failure building a ParsedRequest from an incoming request.
Split out from a bare String (RFC 068 S-02) so the caller can
answer 413 for an oversized body specifically, rather than the
generic 500 every other failure here gets — the client’s mistake,
not the server’s.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BodyTooLarge
The body exceeded max_body_bytes.
Other(String)
Any other failure — unchanged from this function’s previous
bare-String error.
Trait Implementations§
Source§impl Debug for ParsedRequestError
impl Debug for ParsedRequestError
Auto Trait Implementations§
impl Freeze for ParsedRequestError
impl RefUnwindSafe for ParsedRequestError
impl Send for ParsedRequestError
impl Sync for ParsedRequestError
impl Unpin for ParsedRequestError
impl UnsafeUnpin for ParsedRequestError
impl UnwindSafe for ParsedRequestError
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