Skip to main content

serve

Function serve 

Source
pub async fn serve<H, P>(path: P, handler: H) -> IpcResult<()>
where H: IpcHandler + 'static, P: AsRef<Path>,
Expand description

Bind a UnixListener at path and serve newline-delimited JSON-RPC until the listener is dropped. Each connection is authenticated via peer_cred and dispatched through handler (PRODUCT.md A.3/A.4/B.4).