pub async fn serve_features_with_config_and_watching(
features: &[Feature],
config: ServerConfig,
watch_path: Option<PathBuf>,
on_ready: Option<Box<dyn FnOnce() + Send>>,
) -> Result<()>Expand description
Starts an HTTP server with custom configuration and optional file watching.
§Arguments
features- Slice of Feature objects to serve as JSONconfig- Server configurationwatch_path- Optional path to watch for file changeson_ready- Optional callback to be called when server is ready
§Returns
Result<()>- Ok if server starts successfully, Err otherwise