pub enum ParseError {
MissingMethod,
MissingPath,
MissingProtocol,
MissingHeaders,
MissingStatusCode,
InvalidStatusCode,
}
Expand description
Indicates all Errors related to parsing a Request/Response/Chunk
Variants§
MissingMethod
Could not find a valid Method in the Request
MissingPath
Could not find a valid Path in the Request
MissingProtocol
Could not identify the Protocol of the Request/Response
MissingHeaders
Could not find any headers in the Request/Response
MissingStatusCode
Could not find a StatusCode in the Response
InvalidStatusCode
Returned StatusCode is not valid
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
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 ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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