[−][src]Struct rdkafka::topic_partition_list::TopicPartitionListElem
One element of the topic partition list.
Methods
impl<'a> TopicPartitionListElem<'a>
[src]
pub fn topic(&self) -> &str
[src]
Returns the topic name.
pub fn error(&self) -> KafkaResult<()>
[src]
Returns the optional error associated to the specific entry in the TPL.
pub fn partition(&self) -> i32
[src]
Returns the partition number.
pub fn offset(&self) -> Offset
[src]
Returns the offset.
pub fn set_offset(&self, offset: Offset)
[src]
Sets the offset.
Trait Implementations
impl<'a> PartialEq<TopicPartitionListElem<'a>> for TopicPartitionListElem<'a>
[src]
Auto Trait Implementations
impl<'a> !Send for TopicPartitionListElem<'a>
impl<'a> !Sync for TopicPartitionListElem<'a>
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,