Skip to main content

serve_axum_bare

Function serve_axum_bare 

Source
pub async fn serve_axum_bare<S>(
    port: u16,
    state: S,
    modules: OptionalModules,
    max_connections: Option<usize>,
) -> Result<()>
Expand description

Serve the bare API (no query or status module): only the HotShot modules are available, since the only app state is the HotShot handle. State-signature is always on; the rest follow Options, matching Options::init_hotshot_modules.