pub enum KafkaProducerError {
InvalidConfig(KafkaError),
SendFailed(KafkaError),
FlushFailed(KafkaError),
}Expand description
Something that went wrong producing to Kafka.
Variants§
InvalidConfig(KafkaError)
The producer could not be created from the given configuration.
SendFailed(KafkaError)
The record could not be enqueued.
This may mean the local queue is full, which may be caused by the broker being unreachable or backed up.
FlushFailed(KafkaError)
The local queue was not emptied before the flush timeout elapsed.
Trait Implementations§
Source§impl Debug for KafkaProducerError
impl Debug for KafkaProducerError
Source§impl Display for KafkaProducerError
impl Display for KafkaProducerError
Source§impl Error for KafkaProducerError
impl Error for KafkaProducerError
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 KafkaProducerError
impl RefUnwindSafe for KafkaProducerError
impl Send for KafkaProducerError
impl Sync for KafkaProducerError
impl Unpin for KafkaProducerError
impl UnsafeUnpin for KafkaProducerError
impl UnwindSafe for KafkaProducerError
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