Skip to main content

validate

Function validate 

Source
pub fn validate(config: &ServerConfig) -> Result<(), ServerError>
Expand description

Validates a fully loaded server configuration before startup.

Validation is intentionally limited to deterministic semantic checks and filesystem metadata inspection. It does not bind sockets, connect to peers, or perform any other network I/O.

ยงErrors

Returns ServerError::ConfigValidation containing all discovered validation errors when the configuration is not safe to use for startup.