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§
- Local
Stream - One half of a pair of linked streams returned by
stream_pair
. - Synthetic
Error - 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.