Enum thhp::Error [] [src]

pub enum Error {
    InvalidFieldName,
    InvalidFieldValue,
    InvalidNewLine,
    InvalidVersion,
    InvalidMethod,
    InvalidPath,
    InvalidStatusCode,
    InvalidReasonPhrase,
    OutOfCapacity,
}

An error in parsing the http header.

Variants

Invalid byte in header field name.

Invalid byte in header field value.

Invalid byte in newline.

Invalid byte in http version.

Invalid byte in request method.

Invalid byte in request target.

Invalid byte in status code.

Invalid byte in reason phrase.

Too many header fields.

Methods

impl Error
[src]

[src]

Trait Implementations

impl Copy for Error
[src]

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Error
[src]

impl Hash for Error
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Error
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error