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
cause: Option<String>
The key that was being operated upon or reason for the failure.
error_code: u64
The etcd error code.
index: u64
The etcd index.
message: String
A human-friendly description of the error.
Trait Implementations
impl Clone for ApiError
[src]
fn clone(&self) -> ApiError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ApiError
[src]
impl Eq for ApiError
[src]
impl Hash for ApiError
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ApiError
[src]
fn eq(&self, __arg_0: &ApiError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ApiError) -> bool
This method tests for !=
.
impl Display for ApiError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), FmtError>
Formats the value using the given formatter. Read more