Enum qiniu_http::ResponseErrorKind
source · #[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§
source§impl PartialEq for ErrorKind
impl PartialEq for ErrorKind
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralEq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more