pub struct ProducerBatchFailure { /* private fields */ }Expand description
Per-record failure returned by a batch produce report.
Implementations§
Source§impl ProducerBatchFailure
impl ProducerBatchFailure
Sourcepub fn record_index(&self) -> usize
pub fn record_index(&self) -> usize
Returns the index of the input record that failed.
Sourcepub fn into_error(self) -> Error
pub fn into_error(self) -> Error
Consumes this failure and returns the underlying error.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProducerBatchFailure
impl !UnwindSafe for ProducerBatchFailure
impl Freeze for ProducerBatchFailure
impl Send for ProducerBatchFailure
impl Sync for ProducerBatchFailure
impl Unpin for ProducerBatchFailure
impl UnsafeUnpin for ProducerBatchFailure
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