pub struct ConsumerRecord<B = Record> {
pub offset: i64,
pub partition: i32,
pub record: B,
/* private fields */
}Expand description
Record that can be used by Consumer which needs access to metadata
Fields§
§offset: i64The offset of this Record into its partition
partition: i32The partition where this Record is stored
record: BThe Record contents
Implementations§
Source§impl<B> ConsumerRecord<B>
impl<B> ConsumerRecord<B>
Sourcepub fn into_inner(self) -> B
pub fn into_inner(self) -> B
Returns the inner representation of the Record
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for ConsumerRecord<B>where
B: Freeze,
impl<B> RefUnwindSafe for ConsumerRecord<B>where
B: RefUnwindSafe,
impl<B> Send for ConsumerRecord<B>where
B: Send,
impl<B> Sync for ConsumerRecord<B>where
B: Sync,
impl<B> Unpin for ConsumerRecord<B>where
B: Unpin,
impl<B> UnwindSafe for ConsumerRecord<B>where
B: UnwindSafe,
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