pub enum ClientError {
SendFailed(KafkaError),
InvalidTopicName,
InvalidConfig(KafkaError),
InvalidMsgPack(Error),
InvalidJson(Error),
SchemaValidationFailed(SchemaError),
InvalidShard,
MetadataFetchError(KafkaError),
TopicError(String, rd_kafka_resp_err_t),
}
Expand description
Kafka producer errors.
Variants§
SendFailed(KafkaError)
Failed to send a kafka message.
InvalidTopicName
Failed to find configured producer for the requested kafka topic.
InvalidConfig(KafkaError)
Failed to create a kafka producer because of the invalid configuration.
InvalidMsgPack(Error)
Failed to serialize the message.
InvalidJson(Error)
Failed to serialize the json message using serde.
SchemaValidationFailed(SchemaError)
Failed to run schema validation on message.
InvalidShard
Configuration is wrong and it cannot be used to identify the number of a shard.
MetadataFetchError(KafkaError)
Failed to fetch the metadata of Kafka.
TopicError(String, rd_kafka_resp_err_t)
Failed to validate the topic.
Trait Implementations§
source§impl Debug for ClientError
impl Debug for ClientError
source§impl Display for ClientError
impl Display for ClientError
source§impl Error for ClientError
impl Error for ClientError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more