Skip to main content

wrap_stream

Function wrap_stream 

Source
pub fn wrap_stream<S>(stream: S, limits: FrameLimits) -> LinkDuplex
where S: AsyncRead + AsyncWrite + Send + Unpin + 'static,
Expand description

Wraps an already-open byte stream in the node link’s frame codec.

The seam the testing harness uses: hand it one end of a tokio::io::duplex pair and the node cannot tell it from a socket.