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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.