Function quic_rpc::transport::interprocess::tokio_io_endpoint

source ยท
pub fn tokio_io_endpoint<R, W>(
    r: R,
    w: W,
    local: SocketAddr,
    remote: SocketAddr,
    server_config: Option<ServerConfig>
) -> Result<(Endpoint, JoinHandle<Result<()>>, JoinHandle<Result<()>>)>
where R: AsyncRead + Send + Unpin + 'static, W: AsyncWrite + Send + Unpin + 'static,
Expand description

Wrap a tokio read/write pair as a quinn endpoint.

The connection is assumed to be from local to remote. If you try to connect to any other address, packets will be dropped.