Module atm_async_utils::test_channel
[−]
[src]
An in-memory channel, primarily for testing purposes. Like futures::unsync::mpsc, but:
- single-producer
- allocates a vector of the full capacity in new
- sender can trigger an error on the receiver
- allow an arbitrary SinkError type, for use with TestSink
Structs
Receiver |
Receive data from a TestChannel. |
Sender |
Send data to a TestChannel. |
Functions
test_channel |
Creates a new test channel with the given capacity, and returns a Sink for writing to it, and a Stream for reading from it. |