pub struct ServerConfig {
pub listen_address: SocketAddr,
pub health_listen_address: SocketAddr,
pub drain_timeout_ms: u64,
pub channels: Vec<ChannelDef>,
pub routing_rules: Vec<RoutingRuleDef>,
pub persistence_path: Option<PathBuf>,
pub cluster: Option<ClusterConfig>,
}Expand description
Declarative configuration for the standalone liminal server wrapper.
Fields§
§listen_address: SocketAddrSocket address where the standalone server will listen for client traffic.
health_listen_address: SocketAddrSocket address where the health endpoint server will listen for probes.
drain_timeout_ms: u64Maximum time to allow existing connections to drain during graceful shutdown.
channels: Vec<ChannelDef>Channel topology definitions declared by the operator.
routing_rules: Vec<RoutingRuleDef>Declarative routing rules that connect configured channels.
persistence_path: Option<PathBuf>Optional filesystem location for durable server state.
cluster: Option<ClusterConfig>Optional beamr distribution cluster membership configuration.
Implementations§
Source§impl ServerConfig
impl ServerConfig
Sourcepub const fn drain_timeout(&self) -> Duration
pub const fn drain_timeout(&self) -> Duration
Returns the configured graceful-shutdown drain timeout.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerConfig
impl Debug for ServerConfig
Source§impl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
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 ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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