Enum kafka::error::Error
[−]
[src]
pub enum Error { Io(Error), Kafka(KafkaCode), InvalidInputSnappy, UnexpectedEOF, CodecError, StringDecodeError, NoHostReachable, }
The various errors this library can produce.
Variants
Io(Error)
Input/Output error while communicating with Kafka
Kafka(KafkaCode)
An error as reported by a remote Kafka server
InvalidInputSnappy
Failure to decode a snappy compressed response from Kafka
UnexpectedEOF
Failure to decode a response due to an insufficient number of bytes available
CodecError
Failure to decode or encode a response or request respectively
StringDecodeError
Failure to decode a string into a valid utf8 byte sequence
NoHostReachable
Unable to reach any host
Trait Implementations
impl Debug for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more