Enum bosonnlp::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Io(Error), Http(Error), Json(Error), Api { code: StatusCode, reason: String, }, TaskNotFound(String), Timeout(String), }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Io(Error)
Http(Error)
Json(Error)
Api
API 错误
Fields of Api
code: StatusCode | |
reason: String |
TaskNotFound(String)
聚类任务未找到
Timeout(String)
聚类任务超时
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for ErrorKind
impl Display for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl From<String> for ErrorKind
impl From<Error> for ErrorKind
fn from(e: Error) -> Self
Performs the conversion.