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<()>>)>
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.