Enum elastic::error::Error
[−]
[src]
pub enum Error { Api(ApiError), Client(ClientError), }
An error encountered while interacting with Elasticsearch.
API errors can be easily matched and destructured whereas client errors can be formatted, but not destructured.
If the RUST_BACKTRACE
environment variable is 1
then client errors will
also contain a backtrace.
Variants
Api(ApiError)
An API error from Elasticsearch.
Client(ClientError)
Any other kind of error.
Trait Implementations
impl Debug for Error
[src]
impl StdError for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
[src]
The lower-level cause of this error, if any. Read more