Expand description
Provides an in-memory socket abstraction.
The memory-socket
crate provides the MemoryListener
and MemorySocket
types which can
be thought of as in-memory versions of the standard library TcpListener
and TcpStream
types.
§Feature flags
async
: Adds async support forMemorySocket
andMemoryListener
Structs§
- Incoming
- An iterator that infinitely
accept
s connections on aMemoryListener
. - Incoming
Stream - A Stream that infinitely accepts connections on a
MemoryListener
. - Memory
Listener - An in-memory socket server, listening for connections.
- Memory
Socket - An in-memory stream between two local sockets.