pub struct ConsumerRecord {
pub topic: Arc<str>,
pub partition: u32,
pub offset: u64,
pub data: MessageData,
}Expand description
A consumed record with topic/partition metadata.
Fields§
§topic: Arc<str>Topic the record was consumed from (cheap Arc clone per record)
partition: u32Partition number
offset: u64Record offset within the partition
data: MessageDataRecord data
Trait Implementations§
Source§impl Clone for ConsumerRecord
impl Clone for ConsumerRecord
Source§fn clone(&self) -> ConsumerRecord
fn clone(&self) -> ConsumerRecord
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 moreAuto Trait Implementations§
impl !Freeze for ConsumerRecord
impl RefUnwindSafe for ConsumerRecord
impl Send for ConsumerRecord
impl Sync for ConsumerRecord
impl Unpin for ConsumerRecord
impl UnsafeUnpin for ConsumerRecord
impl UnwindSafe for ConsumerRecord
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