pub struct ServerConfig {
pub listen: Vec<String>,
pub pgpass: Option<PathBuf>,
pub workers: usize,
pub shutdown_timeout: Duration,
pub checkout_timeout: Duration,
pub max_prepared_statements: u32,
}Fields§
§listen: Vec<String>§pgpass: Option<PathBuf>Path to a .pgpass file for upstream password authentication. Defaults
to ~/.pgpass or the PGPASSFILE environment variable.
workers: usize§shutdown_timeout: Duration§checkout_timeout: DurationMaximum time a client waits in the per-role wait queue when every
candidate pool is at its max_connections. After this elapses,
the checkout fails with a classified checkout_timeout error.
max_prepared_statements: u32Maximum unique prepared statements tracked globally. Set to 0 for unlimited. Lower this in memory-constrained environments.
Trait Implementations§
Source§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl Default for ServerConfig
impl Default for ServerConfig
Source§impl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for ServerConfig
impl Freeze for ServerConfig
impl Move for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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
Mutably borrows from an owned value. Read more