#[repr(i32)]pub enum ServerError {
Show 24 variants
UnknownError = 0,
MetadataError = 1,
PersistenceError = 2,
AuthenticationError = 3,
AuthorizationError = 4,
ConsumerBusy = 5,
ServiceNotReady = 6,
ProducerBlockedQuotaExceededError = 7,
ProducerBlockedQuotaExceededException = 8,
ChecksumError = 9,
UnsupportedVersionError = 10,
TopicNotFound = 11,
SubscriptionNotFound = 12,
ConsumerNotFound = 13,
TooManyRequests = 14,
TopicTerminatedError = 15,
ProducerBusy = 16,
InvalidTopicName = 17,
IncompatibleSchema = 18,
ConsumerAssignError = 19,
TransactionCoordinatorNotFound = 20,
InvalidTxnStatus = 21,
NotAllowedError = 22,
TransactionConflict = 23,
}Variants§
UnknownError = 0
MetadataError = 1
Error with ZK/metadata
PersistenceError = 2
Error writing reading from BK
AuthenticationError = 3
Non valid authentication
AuthorizationError = 4
Not authorized to use resource
ConsumerBusy = 5
Unable to subscribe/unsubscribe because
ServiceNotReady = 6
other consumers are connected
Any error that requires client retry operation with a fresh lookup
ProducerBlockedQuotaExceededError = 7
Unable to create producer because backlog quota exceeded
ProducerBlockedQuotaExceededException = 8
Exception while creating producer because quota exceeded
ChecksumError = 9
Error while verifying message checksum
UnsupportedVersionError = 10
Error when an older client/version doesn’t support a required feature
TopicNotFound = 11
Topic not found
SubscriptionNotFound = 12
Subscription not found
ConsumerNotFound = 13
Consumer not found
TooManyRequests = 14
Error with too many simultaneously request
TopicTerminatedError = 15
The topic has been terminated
ProducerBusy = 16
Producer with same name is already connected
InvalidTopicName = 17
The topic name is not valid
IncompatibleSchema = 18
Specified schema was incompatible with topic schema
ConsumerAssignError = 19
Dispatcher assign consumer error
TransactionCoordinatorNotFound = 20
Transaction coordinator not found error
InvalidTxnStatus = 21
Invalid txn status error
NotAllowedError = 22
Not allowed error
TransactionConflict = 23
Ack with transaction conflict
Implementations§
Trait Implementations§
Source§impl Clone for ServerError
impl Clone for ServerError
Source§fn clone(&self) -> ServerError
fn clone(&self) -> ServerError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerError
impl Debug for ServerError
Source§impl Default for ServerError
impl Default for ServerError
Source§fn default() -> ServerError
fn default() -> ServerError
Source§impl From<ServerError> for i32
impl From<ServerError> for i32
Source§fn from(value: ServerError) -> i32
fn from(value: ServerError) -> i32
Source§impl Hash for ServerError
impl Hash for ServerError
Source§impl Ord for ServerError
impl Ord for ServerError
Source§fn cmp(&self, other: &ServerError) -> Ordering
fn cmp(&self, other: &ServerError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ServerError
impl PartialEq for ServerError
Source§impl PartialOrd for ServerError
impl PartialOrd for ServerError
impl Copy for ServerError
impl Eq for ServerError
impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl Freeze for ServerError
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnwindSafe for ServerError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more