[][src]Enum isahc::Error

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

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

Variants

Aborted

The request was aborted before it could be completed.

BadClientCertificate(Option<String>)

A problem occurred with the local certificate.

BadServerCertificate(Option<String>)

The server certificate could not be validated.

ConnectFailed

Failed to connect to the server.

CouldntResolveHost

Couldn't resolve host name.

CouldntResolveProxy

Couldn't resolve proxy host name.

Curl(String)

An unrecognized error thrown by curl.

InvalidContentEncoding(Option<String>)

Unrecognized or bad content encoding returned by the server.

InvalidCredentials

Provided credentials were rejected by the server.

InvalidHttpFormat(Error)

Validation error when constructing the request or parsing the response.

InvalidUtf8

Invalid UTF-8 string error.

Io(Error)

An unknown I/O error.

NoResponse

The server did not send a response.

RangeRequestUnsupported

The server does not support or accept range requests.

RequestBodyError(Option<String>)

An error occurred while writing the request body.

ResponseBodyError(Option<String>)

An error occurred while reading the response body.

SSLConnectFailed(Option<String>)

Failed to connect over a secure socket.

SSLEngineError(Option<String>)

An error ocurred in the secure socket engine.

Timeout

An ongoing request took longer than the configured timeout time.

TooManyRedirects

Number of redirects hit the maximum amount.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]