[][src]Enum rust_consul::ProtocolError

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

Errors related to blocking protocol as defined by consul

Variants

BlockingMissing

Consul did not reply with X-Consul-Index header

ContentTypeNotJson

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

NonOkResult(StatusCode)

Consul did not reply with 200 Ok status

ConnectionRefused

connection refused to consul

StreamRestarted

we had an error, and consumer resetted the stream

Trait Implementations

impl Clone for ProtocolError[src]

impl Copy for ProtocolError[src]

impl Debug for ProtocolError[src]

impl Display for ProtocolError[src]

impl Error for ProtocolError[src]

impl From<ProtocolError> for ParseError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,