Enum etcd::Error
[−]
[src]
pub enum Error { Api(ApiError), Http(HttpError), InvalidConditions, InvalidUri(UriError), InvalidUrl(UrlError), NoEndpoints, Serialization(SerializationError), Tls(TlsError), }
An error returned when an operation fails for some reaosn.
Variants
Api(ApiError)
An error returned by an etcd API endpoint.
Http(HttpError)
An error at the HTTP protocol layer.
InvalidConditions
An error returned when invalid conditions have been provided for a compare-and-delete or compare-and-swap operation.
InvalidUri(UriError)
An error returned when an etcd cluster member's endpoint is not a valid URI.
InvalidUrl(UrlError)
An error returned when the URL for a specific API endpoint cannot be generated.
NoEndpoints
An error returned when attempting to create a client without at least one member endpoint.
Serialization(SerializationError)
An error returned when attempting to deserializing invalid JSON.
Tls(TlsError)
An error returned when configuring TLS.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), FmtError>
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl From<HttpError> for Error
[src]
impl From<TlsError> for Error
[src]
impl From<UrlError> for Error
[src]
impl From<SerializationError> for Error
[src]
fn from(error: SerializationError) -> Error
Performs the conversion.