pub enum UtilsError {
Kafka(KafkaError),
TopicNotFound {
topic_name: String,
client_id: String,
},
TopicsNotFound {
client_id: String,
},
Regex(Error),
}
Expand description
Errors that can occur during administrative utility operations.
This enum covers all possible errors when performing admin operations like listing topics, fetching metadata, or managing Kafka cluster resources.
Variants§
Kafka(KafkaError)
Kafka client or operation errors
TopicNotFound
Requested topic was not found
TopicsNotFound
No topics found for the client
Regex(Error)
Regex error
Trait Implementations§
Source§impl Debug for UtilsError
impl Debug for UtilsError
Source§impl Display for UtilsError
impl Display for UtilsError
Source§impl Error for UtilsError
impl Error for UtilsError
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()
Source§impl From<Error> for UtilsError
impl From<Error> for UtilsError
Source§impl From<KafkaError> for UtilsError
impl From<KafkaError> for UtilsError
Source§impl From<UtilsError> for ConsumerError
impl From<UtilsError> for ConsumerError
Source§fn from(source: UtilsError) -> Self
fn from(source: UtilsError) -> Self
Converts to this type from the input type.
Source§impl From<UtilsError> for ProducerError
impl From<UtilsError> for ProducerError
Source§fn from(source: UtilsError) -> Self
fn from(source: UtilsError) -> Self
Converts to this type from the input type.
Source§impl From<UtilsError> for SDKError
impl From<UtilsError> for SDKError
Source§fn from(source: UtilsError) -> Self
fn from(source: UtilsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UtilsError
impl RefUnwindSafe for UtilsError
impl Send for UtilsError
impl Sync for UtilsError
impl Unpin for UtilsError
impl UnwindSafe for UtilsError
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