Enum rust_consul::ParseError [] [src]

pub enum ParseError {
    Protocol(ProtocolError),
    UnexpectedJsonFormat,
    BodyParsing(JsonError),
}

Error that Watch may yield in the stream

Variants

Consul protocol error (missing header, unknown return format)

Json result does not fit expected format

The data is not in json format

Trait Implementations

impl Debug for ParseError
[src]

[src]

Formats the value using the given formatter.

impl Display for ParseError
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for ParseError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

impl From<ProtocolError> for ParseError
[src]

[src]

Performs the conversion.