Expand description
An in-memory pipe: a Write half that hands byte chunks to a blocking
Read half over a channel. Lets a test or a conformance runner connect an
crate::ExternalSource to a scripted adapter running on a thread
without spawning a process. Dropping the writer is EOF for the reader.
Structs§
- Pipe
Reader - The reading end (blocks until bytes arrive or the writer is dropped).
- Pipe
Writer - The writing end.
- Scripted
Adapter - A scripted adapter on a thread (the reference’s
fake-adapter.mjs): it writes every leadingInline, then for eachOutentry waits for one request line from the engine (recording it) before playing theInlines that follow. It stays alive until the engine closes its end, then returns the request lines it received.
Enums§
- Dir
- Who speaks a transcript line: the adapter (
In, written to the engine) or the engine (Out, a request the adapter waits for).
Functions§
- pipe
- A connected
(writer, reader)pair.