Enum actix_web::dev::ParseError
[−]
[src]
pub enum ParseError { Method, Uri, Version, Header, TooLarge, Incomplete, Status, Timeout, Io(IoError), Utf8(Utf8Error), }
A set of errors that can occur during parsing HTTP streams.
Variants
Method
An invalid Method
, such as GE,T
.
Uri
An invalid Uri
, such as exam ple.domain
.
Version
An invalid HttpVersion
, such as HTP/1.1
Header
An invalid Header
.
TooLarge
A message head is too large to be reasonable.
Incomplete
A message reached EOF, but is not complete.
Status
An invalid Status
, such as 1337 ELITE
.
Timeout
A timeout occurred waiting for an IO event.
Io(IoError)
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
[src]
impl Display for ParseError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl StdError for ParseError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
[src]
The lower-level cause of this error, if any. Read more
impl From<IoError> for ParseError
[src]
fn from(err: IoError) -> ParseError
[src]
Performs the conversion.
impl From<Utf8Error> for ParseError
[src]
fn from(err: Utf8Error) -> ParseError
[src]
Performs the conversion.
impl From<FromUtf8Error> for ParseError
[src]
fn from(err: FromUtf8Error) -> ParseError
[src]
Performs the conversion.
impl From<Error> for ParseError
[src]
fn from(err: Error) -> ParseError
[src]
Performs the conversion.