Enum dev_bestia_simple_server::Error[][src]

pub enum Error {
    Io(Error),
    Http(Error),
    HttpParse(Error),
    InvalidUri(InvalidUri),
    Timeout,
    RequestTooLarge,
    ConnectionClosed,
    // some variants omitted
}
Expand description

Various errors that may happen while handling requests.

Variants

Io(Error)

An error while doing I/O.

Tuple Fields of Io

0: Error
Http(Error)

An HTTP error.

Tuple Fields of Http

0: Error
HttpParse(Error)

An error while parsing the HTTP request.

Tuple Fields of HttpParse

0: Error
InvalidUri(InvalidUri)

An error while parsing the URI of the request.

Tuple Fields of InvalidUri

0: InvalidUri
Timeout

The request timed out.

RequestTooLarge

The request’s size (headers + body) exceeded the application’s limit.

ConnectionClosed

The connection was closed while reading the request.

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.