Expand description
In-process transport over tokio::io::duplex.
Exists so the protocol, codec, and I/O pipeline can be tested at full speed without a socket, a certificate, or a port. The duplex buffers are bounded, so backpressure behaves the same way it does over a real stream — which is the property the large-file tests actually depend on.
Structs§
Functions§
- pair
- Create two connected endpoints.
bufis the per-stream buffer in bytes and sets how much data may sit in flight before the writer blocks.