hyperlane_core/config/struct.rs
1use super::*;
2
3/// Represents the server configuration.
4///
5/// This structure holds all the settings for the HTTP and WebSocket server,
6/// including network parameters and buffer sizes.
7#[derive(Clone, CustomDebug, Data, Deserialize, DisplayDebug, Eq, New, PartialEq, Serialize)]
8pub struct ServerConfig {
9 /// The address the server will bind to.
10 #[set(type(AsRef<str>))]
11 pub(super) address: String,
12 /// The `TCP_NODELAY` option for sockets.
13 #[get(type(copy))]
14 pub(super) nodelay: Option<bool>,
15 /// The `IP_TTL` option for sockets.
16 #[get(type(copy))]
17 pub(super) ttl: Option<u32>,
18}