pub enum ParseErrorKind {
Unkown,
Method,
Version,
Req,
Status,
Resp,
Util,
}
Expand description
§Enum for the different places where the parsing could went wrong
This is more for error handling in match cases. It’s used in HttpParseError
For genuine Information where it went wrong read the message
Variants§
Unkown
Error type for Default Error
Method
Error type for everything that has to do with parsing the HttpMethod
Version
Error type for everything that has to do with parsing the HttpVersion
Req
Error type for everything that has to do with parsing the HttpRequest
Status
Error type for everything that has to do with parsing the HttpStatus
Resp
Error type for everything that has to do with parsing the HttpResponse
Util
Error type for some util functions for example
- Parsing the body
- Parsing the headers
- Parsing the uri
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
Source§fn clone(&self) -> ParseErrorKind
fn clone(&self) -> ParseErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
Source§impl Default for ParseErrorKind
impl Default for ParseErrorKind
Source§fn default() -> ParseErrorKind
fn default() -> ParseErrorKind
Returns the “default value” for a type. Read more
Source§impl Display for ParseErrorKind
impl Display for ParseErrorKind
Source§impl From<ParseErrorKind> for HttpParseError
impl From<ParseErrorKind> for HttpParseError
Source§fn from(value: ParseErrorKind) -> Self
fn from(value: ParseErrorKind) -> Self
Converts to this type from the input type.
Source§impl Hash for ParseErrorKind
impl Hash for ParseErrorKind
Source§impl Ord for ParseErrorKind
impl Ord for ParseErrorKind
Source§fn cmp(&self, other: &ParseErrorKind) -> Ordering
fn cmp(&self, other: &ParseErrorKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
Source§impl PartialOrd for ParseErrorKind
impl PartialOrd for ParseErrorKind
impl Copy for ParseErrorKind
impl Eq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Freeze for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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