pub struct ProducerBatchReport { /* private fields */ }Expand description
Report returned by a batch produce operation.
Implementations§
Source§impl ProducerBatchReport
impl ProducerBatchReport
Sourcepub fn records(&self) -> &[ProducerBatchRecordOutcome]
pub fn records(&self) -> &[ProducerBatchRecordOutcome]
Returns per-record outcomes in the same order as input records.
Sourcepub fn into_records(self) -> Vec<ProducerBatchRecordOutcome>
pub fn into_records(self) -> Vec<ProducerBatchRecordOutcome>
Consumes this report and returns per-record outcomes.
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Returns whether at least one record returned a broker failure.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProducerBatchReport
impl !UnwindSafe for ProducerBatchReport
impl Freeze for ProducerBatchReport
impl Send for ProducerBatchReport
impl Sync for ProducerBatchReport
impl Unpin for ProducerBatchReport
impl UnsafeUnpin for ProducerBatchReport
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