pub enum Error {
Show 14 variants
Io(Error),
Kafka(KafkaCode),
TopicPartitionError {
topic_name: String,
partition_id: i32,
error_code: KafkaCode,
},
UnsupportedProtocol,
UnsupportedCompression,
UnexpectedEOF,
CodecError,
StringDecodeError,
NoHostReachable,
NoTopicsAssigned,
InvalidDuration,
ArcSelf(Arc<Self>),
UnsetOffsetStorage,
UnsetGroupId,
}
Variants§
Io(Error)
Kafka(KafkaCode)
An error as reported by a remote Kafka server
TopicPartitionError
An error when transmitting a request for a particular topic and partition. Contains the topic and partition of the request that failed, and the error code as reported by the Kafka server, respectively.
UnsupportedProtocol
Failure to correctly parse the server response due to the server speaking a newer protocol version (than the one this library supports)
UnsupportedCompression
Failure to correctly parse the server response by this library due to an unsupported compression format of the data
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
NoTopicsAssigned
Unable to set up Consumer
due to missing topic assignments
InvalidDuration
An invalid user-provided duration