pub struct RaftVoterResult { /* private fields */ }Expand description
Outcome returned by AddRaftVoter and RemoveRaftVoter.
Implementations§
Source§impl RaftVoterResult
impl RaftVoterResult
Sourcepub fn api_version(&self) -> i16
pub fn api_version(&self) -> i16
Returns the negotiated API version.
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 the Kafka error code.
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Returns the broker error message, when supplied.
Sourcepub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
pub fn broker_error_kind(&self) -> Option<BrokerErrorKind>
Returns kafrust’s classification for a broker error.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Returns whether Kafka accepted the voter mutation.
Trait Implementations§
Source§impl Clone for RaftVoterResult
impl Clone for RaftVoterResult
Source§fn clone(&self) -> RaftVoterResult
fn clone(&self) -> RaftVoterResult
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 RaftVoterResult
impl Debug for RaftVoterResult
impl Eq for RaftVoterResult
Source§impl PartialEq for RaftVoterResult
impl PartialEq for RaftVoterResult
impl StructuralPartialEq for RaftVoterResult
Auto Trait Implementations§
impl Freeze for RaftVoterResult
impl RefUnwindSafe for RaftVoterResult
impl Send for RaftVoterResult
impl Sync for RaftVoterResult
impl Unpin for RaftVoterResult
impl UnsafeUnpin for RaftVoterResult
impl UnwindSafe for RaftVoterResult
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