pub struct ElectLeadersResult { /* private fields */ }Expand description
The result of Admin::elect_leaders.
Implementations§
Source§impl ElectLeadersResult
impl ElectLeadersResult
Sourcepub fn partitions(&self) -> KafkaFuture<HashMap<TopicPartition, Option<Error>>>
pub fn partitions(&self) -> KafkaFuture<HashMap<TopicPartition, Option<Error>>>
Returns 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).
Sourcepub fn all(&self) -> KafkaFuture<()>
pub fn all(&self) -> KafkaFuture<()>
Returns a future which succeeds if all the topic elections succeed.
Trait Implementations§
Source§impl Clone for ElectLeadersResult
impl Clone for ElectLeadersResult
Auto Trait Implementations§
impl !RefUnwindSafe for ElectLeadersResult
impl !UnwindSafe for ElectLeadersResult
impl Freeze for ElectLeadersResult
impl Send for ElectLeadersResult
impl Sync for ElectLeadersResult
impl Unpin for ElectLeadersResult
impl UnsafeUnpin 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