Enum rust_consul::ProtocolError
[−]
[src]
pub enum ProtocolError {
BlockingMissing,
ContentTypeNotJson,
NonOkResult(StatusCode),
ConnectionRefused,
}Errors related to blocking protocol as defined by consul
Variants
BlockingMissingConsul did not reply with X-Consul-Index header
ContentTypeNotJsonConsul did not reply with Content-Type: application/json
NonOkResult(StatusCode)Consul did not reply with 200 Ok status
ConnectionRefusedconnection refused to consul
Trait Implementations
impl Debug for ProtocolError[src]
impl Copy for ProtocolError[src]
impl Clone for ProtocolError[src]
fn clone(&self) -> ProtocolError[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Display for ProtocolError[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more