loom_rpc_handler::web_actor

Function start_web_server_worker

Source
pub async fn start_web_server_worker<S, DB>(
    host: String,
    extra_router: Router<S>,
    bc: Blockchain<DB>,
    db_pool: DbPool,
    shutdown_token: CancellationToken,
) -> WorkerResult
where DB: DatabaseRef<Error = ErrReport> + DatabaseCommit + Send + Sync + Clone + Default + 'static, S: Clone + Send + Sync + 'static, Router: From<Router<S>>,