Function quic_rpc::transport::mem::connection

source ·
pub fn connection<Req: RpcMessage, Res: RpcMessage>(
    buffer: usize
) -> (ServerChannel<Req, Res>, ClientChannel<Res, Req>)
Expand description

Create a channel pair (server, client) for mem channels

buffer the size of the buffer for each channel. Keep this at a low value to get backpressure