pub async fn accept(
reader: Arc<Mutex<BufReader<ReadHalf<Box<dyn PtStream>>>>>,
writer: Arc<Mutex<WriteHalf<Box<dyn PtStream>>>>,
addr: Url,
rh: Arc<impl RequestHandler + 'static>,
conn_limit: Option<usize>,
ex: Arc<Executor<'_>>,
) -> Result<()>
Expand description
Accept function that should run inside a loop for accepting incoming
JSON-RPC requests and passing them to the RequestHandler
.