Enum kafka_rs::error::ClientError
source · pub enum ClientError {
BrokerError(BrokerRequestError),
EncodingError(String),
MalformedResponse,
NoPartitionsAvailable(String),
ProducerMessagesEmpty,
UnknownTopic(String),
}
Expand description
Client errors from interacting with a Kafka cluster.
Variants§
BrokerError(BrokerRequestError)
Error while interacting with a broker.
EncodingError(String)
Error while encoding a batch of records.
MalformedResponse
The broker returned a malformed response.
NoPartitionsAvailable(String)
The specified topic has no available partitions.
ProducerMessagesEmpty
Produce requests must include at least 1 record.
UnknownTopic(String)
The specified topic is unknown to the cluster.
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
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 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