[][src]Enum qiniu_http::ErrorKind

pub enum ErrorKind {
    HTTPCallerError(HTTPCallerError),
    JSONError(JSONError),
    MaliciousResponse,
    UnexpectedRedirect,
    IOError(Error),
    UnknownError(Box<dyn StdError + Send>),
    ResponseStatusCodeError(StatusCodeBox<str>),
    UserCanceled,
}

HTTP 错误类型

Variants

HTTPCallerError(HTTPCallerError)

HTTP 调用错误

JSONError(JSONError)

JSON 错误

MaliciousResponse

恶意响应 响应可能并非来自七牛

UnexpectedRedirect

非预期的重定向

IOError(Error)

IO 错误

UnknownError(Box<dyn StdError + Send>)

未知错误

ResponseStatusCodeError(StatusCodeBox<str>)

响应状态码错误

UserCanceled

用户取消

Implementations

impl ErrorKind[src]

pub fn new_http_caller_error_kind(
    kind: HTTPCallerErrorKind,
    error: impl StdError + Send + 'static
) -> Self
[src]

创建 HTTP 调用错误

Trait Implementations

impl Debug for ErrorKind[src]

impl Display for ErrorKind[src]

Auto Trait Implementations

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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,