Enum elastic_responses::error::ResponseError
[−]
pub enum ResponseError { Api(ApiError), Parse(ParseResponseError), }
An error parsing a REST API response to a success value.
Variants
Api(ApiError)
A REST API error from Elasticsearch.
Parse(ParseResponseError)
An error parsing a response body.
Trait Implementations
impl Debug for ResponseError
[src]
impl Display for ResponseError
impl Error for ResponseError
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<ApiError> for ResponseError
fn from(err: ApiError) -> ResponseError
Performs the conversion.
impl From<ParseResponseError> for ResponseError
fn from(err: ParseResponseError) -> ResponseError
Performs the conversion.