Crate mezzenger_channel

Crate mezzenger_channel 

Source
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§

Transport
Transport for communication over futures channels.

Enums§

Error

Functions§

transports
Create two transports over two unbounded channels.