pub struct ProductionConfig {
pub max_connections: usize,
pub request_timeout: Duration,
pub keep_alive_timeout: Duration,
pub max_body_size: usize,
pub enable_compression: bool,
pub worker_threads: Option<usize>,
pub enable_http2: bool,
pub rate_limit_rps: Option<u32>,
pub graceful_shutdown_timeout: Duration,
}Expand description
Production server configuration for high-scale applications
Fields§
§max_connections: usizeMaximum number of concurrent connections
request_timeout: DurationRequest timeout in seconds
keep_alive_timeout: DurationKeep-alive timeout in seconds
max_body_size: usizeMaximum request body size in bytes
enable_compression: boolEnable request/response compression
worker_threads: Option<usize>Number of worker threads
enable_http2: boolEnable HTTP/2
rate_limit_rps: Option<u32>Rate limiting: requests per second per IP
graceful_shutdown_timeout: DurationEnable graceful shutdown
Trait Implementations§
Source§impl Clone for ProductionConfig
impl Clone for ProductionConfig
Source§fn clone(&self) -> ProductionConfig
fn clone(&self) -> ProductionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProductionConfig
impl Debug for ProductionConfig
Auto Trait Implementations§
impl Freeze for ProductionConfig
impl RefUnwindSafe for ProductionConfig
impl Send for ProductionConfig
impl Sync for ProductionConfig
impl Unpin for ProductionConfig
impl UnwindSafe for ProductionConfig
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