Expand description
In-memory transport for testing protocol layers without sockets.
A [mem::Duplex] pair behaves like a crossed wire: frames written into
one side are returned by the other side’s Transport::recv.
Structs§
- MemSink
- Write half of a split
MemTransport. - MemSource
- Read half of a split
MemTransport. - MemTransport
- One end of an in-memory transport pair.
Functions§
- duplex
- Create two connected transports. Frames sent on one are received by the other; dropping a sender closes that direction.