Struct fluvio_smartmodule::dataplane::record::ConsumerRecord
source · pub struct ConsumerRecord<B = Record<RecordData>> {
pub offset: i64,
pub partition: u32,
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: u32The partition where this Record is stored
record: BThe Record contents
Implementations
sourceimpl<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
sourceimpl AsRef<[u8]> for ConsumerRecord<Record<RecordData>>
impl AsRef<[u8]> for ConsumerRecord<Record<RecordData>>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more