[−][src]Crate bichannel
A zero dependency std::sync::mpsc
based bidirectional channel. Each side can send
and receive with its counterpart
Getting Started
bichannel = "1"
Example Usage
let (left, right) = bichannel::channel(); // Send from the left to the right left.send(1).unwrap(); assert_eq!(Ok(1), right.recv()); // Send from the right to the left right.send(2).unwrap(); assert_eq!(Ok(2), left.recv());
License
TODO MIT/APACHE
Contributing
Bug reports, feature requests, and contributions are warmly welcomed.
NOTE: This README uses cargo-readme. To
update the README, use cargo readme > README.md
Structs
Channel | One side of a bichannelrectional channel. This channel can send to and receive from its counterpart. |
Functions
channel | Creates a bichannelrectional channel returning the left and right sides. Each side can send and receive from its counterpart |