Skip to main content

Module server

Module server 

Source
Expand description

Automated Web Server Lifecycle for Dioxuscut.

Provides spawning, health checking, dynamic port allocation, and clean termination for Dioxus web app rendering.

Structs§

ServerConfig
Configuration for launching the web server.
ServerHandle
Handle to a running server instance, ensuring clean termination on Drop or explicit .stop().

Enums§

ServeMode
Mode of operation for the web server.
ServerError
Errors that can occur during web server lifecycle management.

Functions§

find_available_port
Helper function to find an available local port.
spawn_server
Spawn an embedded static web server serving root_dir on port (or dynamic port if 0).
spawn_server_with_config
Spawn a web server with full configuration and perform health check readiness polling.