Skip to main content

Module inproc

Module inproc 

Source
Expand description

In-process transport.

inproc://<name> URLs address a named, in-memory channel. A InprocListener registered under a name accepts connections from InprocTransport peers that connect to the same name. Each accepted connection is a pair of std::sync::mpsc channels carrying owned byte vectors, giving a reliable, ordered, single-use byte stream.

This transport exists for tests and single-process threshold- cryptography simulation — multiple party state machines running in one binary, exchanging protocol rounds through loopback channels.

Structs§

InprocKind
Registry kind for the in-process transport.
InprocListener
Listening endpoint for inproc:// connections.
InprocTransport
Connected in-process transport. Messages are framed as owned Vec<u8>; send pushes one, recv pops one into the caller’s buffer.