pub struct ClusterConfiguration {
pub max_connections_per_ip: Option<u64>,
pub max_connections_per_subnet: Option<u64>,
pub max_connection_attempts: Option<u32>,
/* private fields */
}Fields§
§max_connections_per_ip: Option<u64>Per-cluster override of the global per-(cluster, source-IP)
connection limit. None inherits the global default,
Some(0) is explicit “unlimited”, Some(n > 0) overrides.
Resolved against SessionManager::effective_max_connections_per_ip
at admit time in connect_to_backend.
max_connections_per_subnet: Option<u64>Per-cluster override of the global per-(cluster, source-SUBNET)
connection limit. Same three-state semantics as
max_connections_per_ip above, resolved against
SessionManager::effective_max_connections_per_subnet at admit
time. An independent second cap: both must admit.
max_connection_attempts: Option<u32>Per-cluster override of the global backend connection attempt
budget, resolved against
SessionManager::effective_max_connection_attempts in
connect_to_backend. None inherits the global value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClusterConfiguration
impl RefUnwindSafe for ClusterConfiguration
impl Send for ClusterConfiguration
impl Sync for ClusterConfiguration
impl Unpin for ClusterConfiguration
impl UnsafeUnpin for ClusterConfiguration
impl UnwindSafe for ClusterConfiguration
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