pub enum ProxyError {
Show 14 variants
Connection(Error),
ProtocolDecode {
message: String,
},
ProtocolEncode {
message: String,
},
BrokerUnavailable {
broker_id: i32,
message: String,
},
NoBrokersAvailable,
TopicNotFound {
topic: String,
},
PartitionOutOfRange {
topic: String,
partition: i32,
max_partition: i32,
},
OffsetOverflow {
partition: i32,
offset: i64,
},
CorrelationIdMismatch {
expected: i32,
actual: i32,
},
UnsupportedApi {
api_key: i16,
api_version: i16,
},
Remap(RemapError),
Tls(TlsError),
Auth(AuthError),
Shutdown,
}Expand description
Errors that occur during proxy operation.
Variants§
Connection(Error)
TCP/IO connection error.
ProtocolDecode
Failed to decode Kafka protocol message.
ProtocolEncode
Failed to encode Kafka protocol message.
Broker is not available or connection failed.
NoBrokersAvailable
No brokers available to handle request.
TopicNotFound
Topic was not found in metadata.
PartitionOutOfRange
Partition index out of valid range.
OffsetOverflow
Offset would overflow the configured range.
CorrelationIdMismatch
Request correlation ID mismatch.
UnsupportedApi
Unsupported API key/version.
Remap(RemapError)
Remapping error.
Tls(TlsError)
TLS error.
Auth(AuthError)
SASL authentication error.
Shutdown
Shutdown signal received.
Trait Implementations§
Source§impl Debug for ProxyError
impl Debug for ProxyError
Source§impl Display for ProxyError
impl Display for ProxyError
Source§impl Error for ProxyError
impl Error for ProxyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AuthError> for ProxyError
impl From<AuthError> for ProxyError
Source§impl From<Error> for ProxyError
impl From<Error> for ProxyError
Source§impl From<RemapError> for ProxyError
impl From<RemapError> for ProxyError
Source§fn from(source: RemapError) -> Self
fn from(source: RemapError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProxyError
impl !RefUnwindSafe for ProxyError
impl Send for ProxyError
impl Sync for ProxyError
impl Unpin for ProxyError
impl !UnwindSafe for ProxyError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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