Function serve

Source
pub fn serve<R, W>(input: R, output: W) -> (Handle, Receiver<DispatchRequest>)
where R: AsyncRead + Unpin + Send + 'static, W: AsyncWrite + Unpin + Send + 'static,