pub struct TopicPartitionListElem<'a> { /* private fields */ }
Expand description
One element of the topic partition list.
Implementations
sourceimpl<'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)where
M: AsRef<str>,
pub fn set_metadata<M>(&mut self, metadata: M)where
M: AsRef<str>,
Sets the optional metadata associated with the entry.
Trait Implementations
sourceimpl<'a> PartialEq<TopicPartitionListElem<'a>> for TopicPartitionListElem<'a>
impl<'a> PartialEq<TopicPartitionListElem<'a>> for TopicPartitionListElem<'a>
sourcefn eq(&self, other: &TopicPartitionListElem<'a>) -> bool
fn eq(&self, other: &TopicPartitionListElem<'a>) -> bool
Auto Trait Implementations
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
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