Enum rust_consul::ProtocolError [] [src]

pub enum ProtocolError {
    BlockingMissing,
    ContentTypeNotJson,
    NonOkResult(StatusCode),
    ConnectionRefused,
}

Errors related to blocking protocol as defined by consul

Variants

Consul did not reply with X-Consul-Index header

Consul did not reply with Content-Type: application/json

Consul did not reply with 200 Ok status

connection refused to consul

Trait Implementations

impl Debug for ProtocolError
[src]

[src]

Formats the value using the given formatter.

impl Copy for ProtocolError
[src]

impl Clone for ProtocolError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for ProtocolError
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for ProtocolError
[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