pub struct ConsumerRecords { /* private fields */ }Expand description
Consumer Records.
Implementations§
Source§impl ConsumerRecords
impl ConsumerRecords
Sourcepub fn new(records: Vec<ConsumerRecord>) -> Self
pub fn new(records: Vec<ConsumerRecord>) -> Self
Creates a new value.
Sourcepub fn iter(&self) -> impl Iterator<Item = &ConsumerRecord>
pub fn iter(&self) -> impl Iterator<Item = &ConsumerRecord>
Iterates over the records without taking ownership.
Sourcepub fn into_inner(self) -> Vec<ConsumerRecord>
pub fn into_inner(self) -> Vec<ConsumerRecord>
Converts this value into inner.
Sourcepub fn commit_offsets(&self) -> Vec<CommitOffset>
pub fn commit_offsets(&self) -> Vec<CommitOffset>
Commit Offsets.
Trait Implementations§
Source§impl Clone for ConsumerRecords
impl Clone for ConsumerRecords
Source§fn clone(&self) -> ConsumerRecords
fn clone(&self) -> ConsumerRecords
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsumerRecords
impl Debug for ConsumerRecords
Source§impl Default for ConsumerRecords
impl Default for ConsumerRecords
Source§fn default() -> ConsumerRecords
fn default() -> ConsumerRecords
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConsumerRecords
impl RefUnwindSafe for ConsumerRecords
impl Send for ConsumerRecords
impl Sync for ConsumerRecords
impl Unpin for ConsumerRecords
impl UnsafeUnpin for ConsumerRecords
impl UnwindSafe for ConsumerRecords
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