pub struct TopicPartitionListElem<'a> { /* private fields */ }
Expand description
One element of the topic partition list.
Implementations§
source§impl<'a> TopicPartitionListElem<'a>
impl<'a> TopicPartitionListElem<'a>
sourcepub fn error(&self) -> KafkaResult<()>
pub fn error(&self) -> KafkaResult<()>
Returns the optional error associated to the specific entry in the TPL.
sourcepub fn set_offset(&mut self, offset: Offset) -> KafkaResult<()>
pub fn set_offset(&mut self, offset: Offset) -> KafkaResult<()>
Sets the offset.
sourcepub fn set_metadata<M>(&mut self, metadata: M)
pub fn set_metadata<M>(&mut self, metadata: M)
Sets the optional metadata associated with the entry.
Trait Implementations§
source§impl<'a> PartialEq for TopicPartitionListElem<'a>
impl<'a> PartialEq for TopicPartitionListElem<'a>
Auto Trait Implementations§
impl<'a> Freeze for TopicPartitionListElem<'a>
impl<'a> RefUnwindSafe for TopicPartitionListElem<'a>
impl<'a> !Send for TopicPartitionListElem<'a>
impl<'a> !Sync for TopicPartitionListElem<'a>
impl<'a> Unpin for TopicPartitionListElem<'a>
impl<'a> !UnwindSafe for TopicPartitionListElem<'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