Function muxrpc::muxrpc
[−]
[src]
pub fn muxrpc<R: AsyncRead, W: AsyncWrite>(
r: R,
w: W
) -> (RpcIn<R, W>, RpcOut<R, W>, Done<W>)
Take ownership of an AsyncRead and an AsyncWrite to create the two halves of a muxrpc connection.
R
is the AsyncRead
for reading bytes from the peer, W
is the
AsyncWrite
for writing bytes to the peer, and B
is the type that is used
as input for sending data.