pub struct ListTransactionsResult { /* private fields */ }Expand description
The result of Admin::list_transactions.
Corresponds to org.apache.kafka.clients.admin.ListTransactionsResult. The
wrapped future completes when the broker list is discovered, yielding a map
from broker id to that broker’s per-request future (mirroring Java’s
KafkaFuture<Map<Integer, KafkaFutureImpl<Collection<TransactionListing>>>>).
Implementations§
Source§impl ListTransactionsResult
impl ListTransactionsResult
Sourcepub fn all(&self) -> KafkaFuture<Vec<TransactionListing>>
pub fn all(&self) -> KafkaFuture<Vec<TransactionListing>>
Get all transaction listings. If any of the underlying requests fail, the returned future also fails with the first encountered error.
Mirrors ListTransactionsResult.all.
Sourcepub fn by_broker_id(
&self,
) -> KafkaFuture<HashMap<i32, KafkaFuture<Vec<TransactionListing>>>>
pub fn by_broker_id( &self, ) -> KafkaFuture<HashMap<i32, KafkaFuture<Vec<TransactionListing>>>>
Get a future returning the per-broker listing futures. Useful for a partial listing or more granular error details.
Mirrors ListTransactionsResult.byBrokerId.
Sourcepub fn all_by_broker_id(
&self,
) -> KafkaFuture<HashMap<i32, Vec<TransactionListing>>>
pub fn all_by_broker_id( &self, ) -> KafkaFuture<HashMap<i32, Vec<TransactionListing>>>
Get all transaction listings keyed by the broker id currently managing them. If any underlying request fails, the returned future also fails.
Mirrors ListTransactionsResult.allByBrokerId.
Trait Implementations§
Source§impl Clone for ListTransactionsResult
impl Clone for ListTransactionsResult
Source§fn clone(&self) -> ListTransactionsResult
fn clone(&self) -> ListTransactionsResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more