Enum rust_consul::Error
[−]
[src]
pub enum Error {
Http(HyperError),
InvalidState,
InvalidUrl(UrlParseError),
Tls(TlsError),
Io(Error),
BodyParse(ParseError),
}General errors that breaks the stream
Variants
Http(HyperError)Error given internaly by hyper
InvalidStateYou have polled the watcher from two different threads
InvalidUrl(UrlParseError)You have given us an invalid url
Tls(TlsError)Error while initializing tls
Io(Error)uncatched io error
BodyParse(ParseError)consul response failed to parse
Trait Implementations
impl Debug for Error[src]
impl Display for Error[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl StdError for Error[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
The lower-level cause of this error, if any. Read more
impl From<UrlParseError> for Error[src]
fn from(e: UrlParseError) -> Error[src]
Performs the conversion.
impl From<TlsError> for Error[src]
impl From<HyperError> for Error[src]
fn from(e: HyperError) -> Error[src]
Performs the conversion.
impl From<Error> for Error[src]
impl From<ParseError> for Error[src]
fn from(e: ParseError) -> Error[src]
Performs the conversion.