Expand description
Transport for communication over futures channels.
Useful for testing and debugging.
See repository for more info.
§Example
ⓘ
let (mut left, mut right) = transports();
left.send("Hello World!").await.unwrap();
right.send(123).await.unwrap();
use mezzenger::Receive;
assert_eq!(right.receive().await.unwrap(), "Hello World!");
assert_eq!(left.receive().await.unwrap(), 123);Structs§
Enums§
Functions§
- transports
- Create two transports over two unbounded channels.