Module io

Source
Expand description

Mocking helpers for testing with futures::io types.

Note that some of this code might be of general use, but for now we’re only trying it for testing.

Structs§

LocalStream
One half of a pair of linked streams returned by stream_pair.
SyntheticError
An error generated by LocalStream::send_err.

Constants§

CAPACITY 🔒
Channel capacity for our internal MPSC channels.
CHUNKSZ 🔒
Maximum size for a queued buffer on a local chunk.

Functions§

drain_helper 🔒
Helper: pull bytes off the front of pending_bytes and put them onto `buf. Return the number of bytes moved.
stream_pair
Construct a new pair of linked LocalStream objects.