pub struct Message<'a> {
pub offset: i64,
pub key: &'a [u8],
pub value: &'a [u8],
}
Expand description
A fetched message from a remote Kafka broker for a particular topic partition.
Fields§
§offset: i64
The offset at which this message resides in the remote kafka broker topic partition.
key: &'a [u8]
The “key” data of this message. Empty if there is no such data for this message.
value: &'a [u8]
The value data of this message. Empty if there is no such data for this message.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Message<'a>
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
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