pub fn framed_json_neutral<S>(
io: S,
) -> impl Transport<WireMessage, WireMessage, TransportError = FramedError> + Unpin + SendExpand description
Wrap a futures-io byte stream in the framing described in this module’s docs.
The result is a Transport of WireMessage, which
TransportStream turns into a
MessageStream for the session loop.
futures::io::AsyncRead/AsyncWrite is the neutral trait pair: Nagoya reaches
it through NagoyaStream behind the
nagoya-transport feature, and a caller still holding a tokio stream reaches it
through tokio-util’s compat on its own side — see the module docs. Neither
route is named here, which is what keeps this path free of a runtime.