Struct etcd::ApiError [] [src]

pub struct ApiError {
    pub cause: Option<String>,
    pub error_code: u64,
    pub index: u64,
    pub message: String,
}

An error returned by an etcd API endpoint.

This is a logical error, as opposed to other types of errors that may occur when using this crate, such as network or serialization errors. See Error for the other types of errors.

Fields

The key that was being operated upon or reason for the failure.

The etcd error code.

The etcd index.

A human-friendly description of the error.

Trait Implementations

impl Clone for ApiError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ApiError
[src]

Formats the value using the given formatter.

impl Eq for ApiError
[src]

impl Hash for ApiError
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for ApiError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for ApiError
[src]

Formats the value using the given formatter. Read more

impl StdError for ApiError
[src]

A short description of the error. Read more

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