Skip to main content

hyperlane/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    pub(super) nodelay: Option<bool>,
14    /// The `IP_TTL` option for sockets.
15    pub(super) ttl: Option<u32>,
16}