pub async fn serve_axum<S>(
port: u16,
state: S,
modules: OptionalModules,
max_connections: Option<usize>,
) -> Result<()>where
S: RewardApi + AvailabilityApi + HotShotAvailabilityApi + BlockStateApi + FeeStateApi + StatusApi + ConfigApi + NodeApi + CatchupApi + SubmitApi + StateSignatureApi + HotShotEventsApi + LightClientApi + ExplorerApi + TokenApi + DatabaseApi + StatusService + TokenService + Clone + Send + Sync + 'static,Expand description
Start Axum HTTP server with combined v1 and v2 APIs
This serves both APIs at /v1/* and /v2/* from a single state implementation.
catchup, like the query-service modules (status, availability, node, token,
block-state, fee-state, reward-state, database) and v2, is always on: tide-disco’s
SQL mode registered it unconditionally. submit, config, explorer, light-client, and
hotshot-events follow Options, matching Options::init_with_query_module_sql.