Enum rust_consul::ParseError
[−]
[src]
pub enum ParseError {
Protocol(ProtocolError),
UnexpectedJsonFormat,
BodyParsing(JsonError),
}Error that Watch may yield in the stream
Variants
Protocol(ProtocolError)Consul protocol error (missing header, unknown return format)
UnexpectedJsonFormatJson result does not fit expected format
BodyParsing(JsonError)The data is not in json format
Trait Implementations
impl Debug for ParseError[src]
impl Display for ParseError[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl StdError for ParseError[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<ProtocolError> for ParseError[src]
fn from(e: ProtocolError) -> ParseError[src]
Performs the conversion.