Enum ajars_actix_web::actix_web::error::ParseError [−]
#[non_exhaustive]
pub enum ParseError {
Method,
Uri(InvalidUri),
Version,
Header,
TooLarge,
Incomplete,
Status,
Timeout,
Io(Error),
Utf8(Utf8Error),
}
Expand description
A set of errors that can occur during parsing HTTP streams.
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.
An invalid Method
, such as GE.T
.
Uri(InvalidUri)
An invalid Uri
, such as exam ple.domain
.
An invalid HttpVersion
, such as HTP/1.1
An invalid Header
.
A message head is too large to be reasonable.
A message reached EOF, but is not complete.
An invalid Status
, such as 1337 ELITE
.
A timeout occurred waiting for an IO event.
Io(Error)
An io::Error
that occurred while trying to read or write to a network stream.
Utf8(Utf8Error)
Parsing a field as string failed
Trait Implementations
impl Debug for ParseError
impl Debug for ParseError
impl Display for ParseError
impl Display for ParseError
impl Error for ParseError
impl Error for ParseError
impl From<Error> for ParseError
impl From<Error> for ParseError
pub fn from(err: Error) -> ParseError
pub fn from(err: Error) -> ParseError
Performs the conversion.
impl From<Error> for ParseError
impl From<Error> for ParseError
pub fn from(err: Error) -> ParseError
pub fn from(err: Error) -> ParseError
Performs the conversion.
impl From<FromUtf8Error> for ParseError
impl From<FromUtf8Error> for ParseError
pub fn from(err: FromUtf8Error) -> ParseError
pub fn from(err: FromUtf8Error) -> ParseError
Performs the conversion.
impl From<InvalidUri> for ParseError
impl From<InvalidUri> for ParseError
pub fn from(err: InvalidUri) -> ParseError
pub fn from(err: InvalidUri) -> ParseError
Performs the conversion.
impl From<ParseError> for Response<AnyBody>
impl From<ParseError> for Response<AnyBody>
pub fn from(err: ParseError) -> Response<AnyBody>
pub fn from(err: ParseError) -> Response<AnyBody>
Performs the conversion.
impl From<ParseError> for DispatchError
impl From<ParseError> for DispatchError
pub fn from(original: ParseError) -> DispatchError
pub fn from(original: ParseError) -> DispatchError
Performs the conversion.
impl From<Utf8Error> for ParseError
impl From<Utf8Error> for ParseError
pub fn from(err: Utf8Error) -> ParseError
pub fn from(err: Utf8Error) -> ParseError
Performs the conversion.
Returns appropriate status code for error. Read more
fn error_response(&self) -> HttpResponse<AnyBody>ⓘNotable traits for HttpResponse<AnyBody>impl Future for HttpResponse<AnyBody> type Output = Result<Response<AnyBody>, Error>;
fn error_response(&self) -> HttpResponse<AnyBody>ⓘNotable traits for HttpResponse<AnyBody>impl Future for HttpResponse<AnyBody> type Output = Result<Response<AnyBody>, Error>;
Notable traits for HttpResponse<AnyBody>
impl Future for HttpResponse<AnyBody> type Output = Result<Response<AnyBody>, Error>;
Creates full response for error. Read more