ServerConfig

Trait ServerConfig 

Source
pub trait ServerConfig {
    // Required method
    fn config_name(&self) -> &'static str;

    // Provided methods
    fn validate(&self) -> Result<()> { ... }
    fn is_enabled(&self) -> bool { ... }
}
Expand description

Base configuration trait that all server configs can implement

Required Methods§

Source

fn config_name(&self) -> &'static str

Get configuration name for logging/debugging

Provided Methods§

Source

fn validate(&self) -> Result<()>

Validate the configuration

Source

fn is_enabled(&self) -> bool

Check if configuration is enabled

Implementors§