pub struct PolledMessages {
pub partition_id: u32,
pub current_offset: u64,
pub messages: Vec<PolledMessage>,
}
Expand description
The wrapper on top of the collection of messages that are polled from the partition. It consists of the following fields:
partition_id
: the identifier of the partition.current_offset
: the current offset of the partition.messages
: the collection of messages.
Fields§
§partition_id: u32
The identifier of the partition. If it’s ‘0’, then there’s no partition assigned to the consumer group member.
current_offset: u64
The current offset of the partition.
messages: Vec<PolledMessage>
The collection of messages.
Trait Implementations§
Source§impl Debug for PolledMessages
impl Debug for PolledMessages
Source§impl<'de> Deserialize<'de> for PolledMessages
impl<'de> Deserialize<'de> for PolledMessages
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PolledMessages
impl RefUnwindSafe for PolledMessages
impl Send for PolledMessages
impl Sync for PolledMessages
impl Unpin for PolledMessages
impl UnwindSafe for PolledMessages
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