pub struct NoopErrorClassifier;Expand description
A no-op classifier that considers every error non-retryable.
Useful as a default when no broker-specific classifier is available.
Trait Implementations§
Source§impl Clone for NoopErrorClassifier
impl Clone for NoopErrorClassifier
Source§fn clone(&self) -> NoopErrorClassifier
fn clone(&self) -> NoopErrorClassifier
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 moreimpl Copy for NoopErrorClassifier
Source§impl Debug for NoopErrorClassifier
impl Debug for NoopErrorClassifier
Source§impl Default for NoopErrorClassifier
impl Default for NoopErrorClassifier
Source§fn default() -> NoopErrorClassifier
fn default() -> NoopErrorClassifier
Returns the “default value” for a type. Read more
Source§impl ErrorClassifier for NoopErrorClassifier
impl ErrorClassifier for NoopErrorClassifier
Source§fn is_connection_error(&self, _err: &AppError) -> bool
fn is_connection_error(&self, _err: &AppError) -> bool
Returns
true when the error indicates the broker connection is down
(e.g. TCP reset, DNS failure, authentication timeout).Source§fn is_retryable_error(&self, _err: &AppError) -> bool
fn is_retryable_error(&self, _err: &AppError) -> bool
Returns
true when the error is transient and the operation can be
retried (e.g. leader election in progress, throttling, temporary I/O
error). Connection errors are typically retryable too, but the
distinction lets callers apply different back-off strategies.Auto Trait Implementations§
impl Freeze for NoopErrorClassifier
impl RefUnwindSafe for NoopErrorClassifier
impl Send for NoopErrorClassifier
impl Sync for NoopErrorClassifier
impl Unpin for NoopErrorClassifier
impl UnsafeUnpin for NoopErrorClassifier
impl UnwindSafe for NoopErrorClassifier
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