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: usizeMaximum number of concurrent connections
max_memory_bytes: u64Maximum memory usage in bytes (0 = unlimited)
max_bandwidth_bps: u64Maximum bandwidth per second in bytes
connection_timeout: DurationConnection timeout for new peers
keep_alive_interval: DurationKeep-alive interval for existing connections
health_check_interval: DurationHealth check interval
metrics_interval: DurationMetrics collection interval
enable_performance_tracking: boolEnable detailed performance tracking
enable_auto_cleanup: boolEnable automatic resource cleanup
shutdown_timeout: DurationGraceful shutdown timeout
rate_limits: RateLimitConfigRate 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§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
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