pub enum BackendConnectionError {
NotFound(ObjectKind),
MaxConnectionRetries(Option<String>),
MaxSessionsMemory,
Backend(BackendError),
RetrieveClusterError(RetrieveClusterError),
MaxBuffers,
TooManyConnectionsPerIp {
cluster_id: String,
},
}Variants§
NotFound(ObjectKind)
MaxConnectionRetries(Option<String>)
MaxSessionsMemory
Backend(BackendError)
RetrieveClusterError(RetrieveClusterError)
MaxBuffers
TooManyConnectionsPerIp
Per-(cluster, source-IP) connection limit reached. The protocol
layer translates this into HTTP 429 Too Many Requests (with an
optional Retry-After) for HTTP/HTTPS sessions, or a graceful TCP
close for raw TCP. The cluster_id is included so log/metric
pipelines can attribute the rejection.
Trait Implementations§
Source§impl Debug for BackendConnectionError
impl Debug for BackendConnectionError
Source§impl Display for BackendConnectionError
impl Display for BackendConnectionError
Source§impl Error for BackendConnectionError
impl Error for BackendConnectionError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for BackendConnectionError
impl !RefUnwindSafe for BackendConnectionError
impl Send for BackendConnectionError
impl Sync for BackendConnectionError
impl Unpin for BackendConnectionError
impl UnsafeUnpin for BackendConnectionError
impl !UnwindSafe for BackendConnectionError
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