pub struct DescribeProducersResult { /* private fields */ }Expand description
The result of Admin::describe_producers.
Corresponds to org.apache.kafka.clients.admin.DescribeProducersResult.
Implementations§
Source§impl DescribeProducersResult
impl DescribeProducersResult
Sourcepub fn partition_result(
&self,
partition: &TopicPartition,
) -> Result<KafkaFuture<PartitionProducerState>, Error>
pub fn partition_result( &self, partition: &TopicPartition, ) -> Result<KafkaFuture<PartitionProducerState>, Error>
Returns the future for a specific partition.
Mirrors DescribeProducersResult.partitionResult. Returns an error if
the partition was not included in the request, mirroring Java’s
IllegalArgumentException.
§Errors
Returns Error::local_illegal_argument if partition was not requested.
Sourcepub fn all(
&self,
) -> KafkaFuture<HashMap<TopicPartition, PartitionProducerState>>
pub fn all( &self, ) -> KafkaFuture<HashMap<TopicPartition, PartitionProducerState>>
Returns a future yielding a map of every requested partition’s producer state. Fails if any partition’s request fails.
Mirrors DescribeProducersResult.all.
Trait Implementations§
Source§impl Clone for DescribeProducersResult
impl Clone for DescribeProducersResult
Source§fn clone(&self) -> DescribeProducersResult
fn clone(&self) -> DescribeProducersResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DescribeProducersResult
impl !RefUnwindSafe for DescribeProducersResult
impl Send for DescribeProducersResult
impl Sync for DescribeProducersResult
impl Unpin for DescribeProducersResult
impl UnsafeUnpin for DescribeProducersResult
impl !UnwindSafe for DescribeProducersResult
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