Function darkfi::rpc::server::listen_and_serve
source ยท pub async fn listen_and_serve(
accept_url: Url,
rh: Arc<impl RequestHandler + 'static>,
conn_limit: Option<usize>,
ex: Arc<Executor<'_>>,
) -> Result<()>
Expand description
Start a JSON-RPC server bound to the given accept URL and use the
given RequestHandler
to handle incoming requests.