pub struct RuntimeState {
pub max_connections: usize,
pub idle_timeout: Duration,
pub request_timeout: Duration,
pub tcp_nodelay: bool,
pub keepalive_interval: Option<Duration>,
pub metrics_enabled: bool,
pub debug_logging: bool,
pub enabled_units: HashSet<u8>,
pub custom: HashMap<String, String>,
}Expand description
Runtime configuration state.
Fields§
§max_connections: usizeMaximum concurrent connections.
idle_timeout: DurationConnection idle timeout.
request_timeout: DurationRequest processing timeout.
tcp_nodelay: boolWhether TCP nodelay is enabled.
keepalive_interval: Option<Duration>TCP keepalive interval.
metrics_enabled: boolWhether metrics collection is enabled.
debug_logging: boolWhether debug logging is enabled.
enabled_units: HashSet<u8>Enabled unit IDs.
custom: HashMap<String, String>Custom settings.
Trait Implementations§
Source§impl Clone for RuntimeState
impl Clone for RuntimeState
Source§fn clone(&self) -> RuntimeState
fn clone(&self) -> RuntimeState
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 RuntimeState
impl Debug for RuntimeState
Source§impl Default for RuntimeState
impl Default for RuntimeState
Source§impl<'de> Deserialize<'de> for RuntimeState
impl<'de> Deserialize<'de> for RuntimeState
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 RuntimeState
impl RefUnwindSafe for RuntimeState
impl Send for RuntimeState
impl Sync for RuntimeState
impl Unpin for RuntimeState
impl UnsafeUnpin for RuntimeState
impl UnwindSafe for RuntimeState
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