pub struct ElectLeadersResult { /* private fields */ }Expand description
Result returned by AdminClient::elect_leaders.
Implementations§
Source§impl ElectLeadersResult
impl ElectLeadersResult
Sourcepub fn throttle_time(&self) -> Duration
pub fn throttle_time(&self) -> Duration
Returns the broker throttle duration.
Sourcepub fn error_code(&self) -> i16
pub fn error_code(&self) -> i16
Returns Kafka’s top-level error code.
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Returns a top-level error message, when the protocol provides one.
Sourcepub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
pub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
Returns kafrust’s top-level broker error classification, when present.
Sourcepub fn topics(&self) -> &[ElectLeadersTopicResult]
pub fn topics(&self) -> &[ElectLeadersTopicResult]
Returns topic-level partition outcomes.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns whether the request and all returned partition requests succeeded.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns whether any top-level or partition-level error was reported.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElectLeadersResult
impl Debug for ElectLeadersResult
impl Eq for ElectLeadersResult
Source§impl PartialEq for ElectLeadersResult
impl PartialEq for ElectLeadersResult
impl StructuralPartialEq for ElectLeadersResult
Auto 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