pub struct ElectLeadersResult { /* private fields */ }Expand description
The result of Admin::elect_leaders.
Corresponds to org.apache.kafka.clients.admin.ElectLeadersResult.
Implementations§
Source§impl ElectLeadersResult
impl ElectLeadersResult
Sourcepub fn partitions(&self) -> KafkaFuture<HashMap<TopicPartition, Option<Error>>>
pub fn partitions(&self) -> KafkaFuture<HashMap<TopicPartition, Option<Error>>>
Get a future for the topic partitions for which a leader election was
attempted. If the election succeeded then the value for a topic
partition will be None; otherwise the election failed and the value
will be Some(error).
Mirrors partitions().
Sourcepub fn all(&self) -> KafkaFuture<()>
pub fn all(&self) -> KafkaFuture<()>
Return a future which succeeds if all the topic elections succeed.
Mirrors all().
Trait Implementations§
Source§impl Clone for ElectLeadersResult
impl Clone for ElectLeadersResult
Source§fn clone(&self) -> ElectLeadersResult
fn clone(&self) -> ElectLeadersResult
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 ElectLeadersResult
impl !RefUnwindSafe for ElectLeadersResult
impl Send for ElectLeadersResult
impl Sync for ElectLeadersResult
impl Unpin for ElectLeadersResult
impl UnsafeUnpin for ElectLeadersResult
impl !UnwindSafe for ElectLeadersResult
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