Enum etcd::Error [] [src]

pub enum Error {
    Api(ApiError),
    Http(HttpError),
    InvalidConditions(&'static str),
    InvalidUrl(ParseError),
    Io(IoError),
    NoEndpoints,
}

An error returned by Client method failures.

Variants

Api

An error returned by etcd.

Http

An HTTP error from attempting to connect to etcd.

InvalidConditions

An error returned when invalid conditions have been provided for a compare-and-delete or compare-and-swap operation.

InvalidUrl

An error if an etcd cluster member's endpoint is not a valid URL.

Io

An IO error, which can happen when reading the HTTP response.

NoEndpoints

An error when attempting to create a client without at least one member endpoint.

Trait Implementations

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result<(), FmtError>

impl StdError for Error

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

impl From<HttpError> for Error

fn from(error: HttpError) -> Error

impl From<IoError> for Error

fn from(error: IoError) -> Error

impl From<ParseError> for Error

fn from(error: ParseError) -> Error

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result