pub enum ReadThreadErrors<P: Protocol> {
    WriteError(Error),
    ReadError(Error),
    ImmediateMessageConstructError((P::Commands, Vec<u8>)),
    Disconnected,
}
Expand description

The error type for operations in the asynchronous read thread

Variants

WriteError(Error)

This indicates that a immediate respond in the read-thread failed

ReadError(Error)

This indicates that the read-thread failed to receive a message

ImmediateMessageConstructError((P::Commands, Vec<u8>))

This indicates that the read-thread failed to construct a message. This typically happens if the protocol implementation has a flaw.

Disconnected

This happens if the read-thread is disconnected from the server.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.