pub enum ProducerError {
IdempotenceRequiresAcksAll,
IdempotenceRequiresRetries,
TransactionalRequiresAcksAll,
MissingTransactionVersionFeature,
UnsupportedTransactionVersion {
level: i16,
},
UnsupportedApiVersion {
api: &'static str,
min_version: i16,
broker_version: i16,
},
NotTransactional,
ThreadStoppedBefore {
operation: &'static str,
},
ThreadStoppedDuring {
operation: &'static str,
},
Join(JoinError),
}Expand description
Errors raised by the producer API.
Variants§
IdempotenceRequiresAcksAll
Idempotence was enabled without acks=-1.
IdempotenceRequiresRetries
Idempotence was enabled without retries.
TransactionalRequiresAcksAll
Transactions require all replicas to acknowledge records.
MissingTransactionVersionFeature
The broker did not report the transaction feature level.
UnsupportedTransactionVersion
The broker transaction feature level is too old.
UnsupportedApiVersion
A broker API version is older than this client needs.
Fields
NotTransactional
The operation requires a configured transactional id.
ThreadStoppedBefore
The sender task stopped before the operation was sent.
ThreadStoppedDuring
The sender task stopped while the operation was waiting for a reply.
Join(JoinError)
The sender task could not be joined.
Trait Implementations§
Source§impl Debug for ProducerError
impl Debug for ProducerError
Source§impl Display for ProducerError
impl Display for ProducerError
Source§impl Error for ProducerError
impl Error for ProducerError
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<ProducerError> for Error
impl From<ProducerError> for Error
Source§fn from(source: ProducerError) -> Self
fn from(source: ProducerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProducerError
impl !RefUnwindSafe for ProducerError
impl Send for ProducerError
impl Sync for ProducerError
impl Unpin for ProducerError
impl UnsafeUnpin for ProducerError
impl !UnwindSafe for ProducerError
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