Enum faktory::FaktoryError[][src]

pub enum FaktoryError {
    Malformed {
        desc: String,
    },
    Internal {
        msg: String,
    },
    BadType {
        expected: &'static str,
        received: String,
    },
    BadResponse {
        typed_as: &'static str,
        error: &'static str,
        bytes: Vec<u8>,
    },
    // some variants omitted
}

The set of observable application-level errors when interacting with a Faktory server.

Variants

Malformed

The server reports that an issued request was malformed.

Show fields

Fields of Malformed

desc: String

Error reported by server

Internal

The server responded with an error.

Show fields

Fields of Internal

msg: String

The error message given by the server.

BadType

The server sent a response that did not match what was expected.

Show fields

Fields of BadType

expected: &'static str

The expected response type.

received: String

The received response.

BadResponse

The server sent a malformed response.

Show fields

Fields of BadResponse

typed_as: &'static str

The type of the server response.

error: &'static str

A description of what was wrong with the server response.

bytes: Vec<u8>

The relevant bytes sent by the server.

Trait Implementations

impl Debug for FaktoryError[src]

impl Display for FaktoryError[src]

impl Fail for FaktoryError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail
[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> Same<T> for T

type Output = T

Should always be Self

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>,