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