pub enum ConsumerError {
Show 17 variants
ThreadStoppedBefore {
operation: &'static str,
},
ThreadStoppedDuring {
operation: &'static str,
},
Join(JoinError),
EmptySubscription,
EmptySubscriptionPattern,
InvalidSubscriptionRegex {
message: String,
},
ConcurrentPoll,
Wakeup,
InvalidSeekOffset {
offset: i64,
},
EmptyTopicPartition,
PartitionNotAssigned {
operation: &'static str,
topic: String,
partition: i32,
},
InvalidRegularExpression {
message: String,
},
UnsupportedAssignor {
assignor: String,
message: String,
},
UnreleasedInstanceId {
instance_id: String,
message: String,
},
FencedInstanceId {
instance_id: String,
message: String,
},
ShuttingDown,
Fatal {
message: String,
},
}Expand description
Errors raised by the consumer API.
Variants§
ThreadStoppedBefore
The runtime stopped before the operation was sent.
ThreadStoppedDuring
The runtime stopped while the operation was waiting for a reply.
Join(JoinError)
The background consumer task could not be joined.
EmptySubscription
A subscription was requested without any topic names.
EmptySubscriptionPattern
A regex subscription was requested with an empty pattern.
InvalidSubscriptionRegex
A regex subscription could not be compiled locally.
ConcurrentPoll
Another poll call was already active.
Wakeup
A blocking poll was interrupted with wakeup.
InvalidSeekOffset
A seek offset was negative.
EmptyTopicPartition
A topic partition had an empty topic name.
PartitionNotAssigned
The operation needs a partition currently assigned to this consumer.
Fields
InvalidRegularExpression
The broker rejected the subscription regex.
UnsupportedAssignor
The broker rejected the configured server-side assignor.
UnreleasedInstanceId
A static member id is still owned by another consumer instance.
FencedInstanceId
The broker fenced this static member instance.
ShuttingDown
The consumer runtime is already shutting down.
Fatal
The consumer runtime is in a fatal state.
Trait Implementations§
Source§impl Debug for ConsumerError
impl Debug for ConsumerError
Source§impl Display for ConsumerError
impl Display for ConsumerError
Source§impl Error for ConsumerError
impl Error for ConsumerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()