Enum chttp::error::Error [] [src]

pub enum Error {
    BadClientCertificate(Option<String>),
    BadServerCertificate(Option<String>),
    ConnectFailed,
    CouldntResolveHost,
    CouldntResolveProxy,
    Curl(String),
    InvalidContentEncoding(Option<String>),
    InvalidCredentials,
    InvalidHttpFormat(Error),
    InvalidJson,
    InvalidUtf8,
    Io(Error),
    NoResponse,
    RangeRequestUnsupported,
    RequestBodyError(Option<String>),
    ResponseBodyError(Option<String>),
    SSLConnectFailed(Option<String>),
    SSLEngineError(Option<String>),
    Timeout,
    TooManyConnections,
    TooManyRedirects,
    TransportBusy,
}

All possible types of errors that can be returned from cHTTP.

Variants

A problem occurred with the local certificate.

The server certificate could not be validated.

Failed to connect to the server.

Couldn't resolve host name.

Couldn't resolve proxy host name.

An unrecognized error thrown by libcurl.

Unrecognized or bad content encoding returned by the server.

Provided credentials were rejected by the server.

Validation error when constructing the request or parsing the response.

JSON syntax error when constructing or parsing JSON values.

Invalid UTF-8 string error.

An unknown I/O error.

The server did not send a response.

The server does not support or accept range requests.

An error occurred while writing the request body.

An error occurred while reading the response body.

Failed to connect over a secure socket.

An error ocurred in the secure socket engine.

An ongoing request took longer than the configured timeout time.

Returned when making more simultaneous requests would exceed the configured TCP connection limit.

Number of redirects hit the maximum amount.

An attempt was made to re-use a transport for a new request that already has another request in progress.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

[src]

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

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<MultiError> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

[src]

Performs the conversion.