pub struct ProductionConfig {
pub max_connections: usize,
pub max_memory_bytes: u64,
pub max_bandwidth_bps: u64,
pub connection_timeout: Duration,
pub keep_alive_interval: Duration,
pub health_check_interval: Duration,
pub metrics_interval: Duration,
pub enable_performance_tracking: bool,
pub enable_auto_cleanup: bool,
pub shutdown_timeout: Duration,
pub rate_limits: RateLimitConfig,
}
Expand description
Production configuration with resource limits and performance tuning
Fields§
§max_connections: usize
Maximum number of concurrent connections
max_memory_bytes: u64
Maximum memory usage in bytes (0 = unlimited)
max_bandwidth_bps: u64
Maximum bandwidth per second in bytes
connection_timeout: Duration
Connection timeout for new peers
keep_alive_interval: Duration
Keep-alive interval for existing connections
health_check_interval: Duration
Health check interval
metrics_interval: Duration
Metrics collection interval
enable_performance_tracking: bool
Enable detailed performance tracking
enable_auto_cleanup: bool
Enable automatic resource cleanup
shutdown_timeout: Duration
Graceful shutdown timeout
rate_limits: RateLimitConfig
Rate limiting configuration
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProductionConfig
impl Debug for ProductionConfig
Source§impl Default for ProductionConfig
impl Default for ProductionConfig
Source§impl<'de> Deserialize<'de> for ProductionConfig
impl<'de> Deserialize<'de> for ProductionConfig
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 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