pub enum Kind {
Show 19 variants ResolveProxy, ResolveHost, Connect, Http2, BodyStreamFailure, InterfaceFailure, TooManyRedirects, NothingFromServer, SendError, RecvError, SslConnect, SslLocalCertificate, SslCipher, SslCertificate, SslShutdownFailed, Curl(String), PartialFile, Timeout, NotUtf8(FromUtf8Error),
}
Expand description

Specifies the type of error

Variants

ResolveProxy

failure resolving proxy

ResolveHost

failure resolving host

Connect

failed connecting to host

Http2

HTTP2 framing error

BodyStreamFailure

failure reading from the specified Body

InterfaceFailure

outgoing interface could not be used

TooManyRedirects

Redirect loop or too many redirects

NothingFromServer

The server sent nothing

SendError

Failed to send on socket

RecvError

Failed to receive from socket

SslConnect

failure performing SSL handshake

SslLocalCertificate

local client certificate problem

SslCipher

The SSL cipher is invalid

SslCertificate

Remote server’s SSL certificate is invalid

SslShutdownFailed

The remote server did not close via SSL

Curl(String)

unknown CURL error

PartialFile

The expected was not the reported size

Timeout

The specified timeout was exceeded

NotUtf8(FromUtf8Error)

The contents were not valid UTF-8

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.