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

An API error from Elasticsearch.

Any other kind of error.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

[src]

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Error

impl !Sync for Error