mezzenger-channel

Crates.iomezzenger-channel
lib.rsmezzenger-channel
version0.1.1
sourcesrc
created_at2023-01-02 07:48:42.583025
updated_at2023-09-13 07:21:48.119867
descriptionmezzenger transport over futures channels.
homepagehttps://github.com/zduny/mezzenger/tree/master/mezzenger-channel
repositoryhttps://github.com/zduny/mezzenger
max_upload_size
id749204
size21,714
Daniel Zduniak (zduny)

documentation

https://docs.rs/mezzenger-channel/

README

mezzenger-channel

Transport for communication over futures channels.

https://crates.io/crates/mezzenger-channel

ko-fi

usage

Add dependencies to Cargo.toml:

[dependencies]
# ...
mezzenger = "0.1.3"
mezzenger-channel = "0.1.0"

Example code:

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);

see also

mezzenger

Commit count: 191

cargo fmt