Enum kafka_rs::error::ClientError
source · pub enum ClientError {
BrokerError(BrokerRequestError),
Disconnected,
EncodingError(String),
NoPartitionsAvailable(String),
UnknownBroker(BrokerId),
UnknownTopic(String),
}
Expand description
Client errors from interacting with a Kafka cluster.
Variants§
BrokerError(BrokerRequestError)
Error while interacting with a broker.
Disconnected
The client is disconnected.
EncodingError(String)
Error while encoding a batch of records.
NoPartitionsAvailable(String)
The specified topic has no available partitions.
UnknownBroker(BrokerId)
A broker has disappeared from the cluster during client operations.
Typically, application code should just retry the request in the face of this error.
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