Skip to main content

Module memory

Module memory 

Source
Expand description

Portable in-memory streams for local connections, emulators and tests.

These streams use only standard Rust synchronization, with no sockets or worker threads. Split an endpoint with Duplex::into_halves for plain I/O.

Structs§

Reader
Receiving half of a Duplex, with an independently configured read deadline.
Writer
Sending half of a Duplex, sharing one deadline across writes and flushes.

Functions§

duplex
Creates two connected streams with capacity bytes of buffering per direction.

Type Aliases§

Duplex
One endpoint of an in-memory duplex connection, ready for a client or server.