#[non_exhaustive]
pub enum ResponseErrorKind {
Show 18 variants ProtocolError, InvalidRequestResponse, InvalidUrl, InvalidHeader, ConnectError, ProxyError, DnsServerError, UnknownHostError, SendError, ReceiveError, LocalIoError, TimeoutError, ClientCertError, ServerCertError, SslError, TooManyRedirect, UnknownError, CallbackError,
}
Expand description

HTTP 响应错误类型

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ProtocolError

协议错误,该协议不能支持

§

InvalidRequestResponse

非法的请求 / 响应错误

§

InvalidUrl

非法的 URL

§

InvalidHeader

非法的 HTTP 头

§

ConnectError

网络连接失败

§

ProxyError

代理连接失败

§

DnsServerError

DNS 服务器连接失败

§

UnknownHostError

域名解析失败

§

SendError

发送失败

§

ReceiveError

接受失败

§

LocalIoError

本地 IO 失败

§

TimeoutError

超时失败

§

ClientCertError

SSL 客户端证书错误

§

ServerCertError

SSL 服务器端证书错误

§

SslError

SSL 错误

§

TooManyRedirect

重定向次数过多

§

UnknownError

未知错误

§

CallbackError

回调函数返回错误

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.