Expand description
A tiny easy to use helper that makes function calls through threads/ tasks easier with tokio channels
For an example check cargo run --example simple
at examples/simple.rs
Re-exports§
pub use broadcast::*;
pub use broadcast_center::*;
Modules§
- broadcast
- broadcast_
center - error
- macros
- mpsc
- A multi-producer, single-consumer queue for sending values between asynchronous tasks.
Macros§
- as_item
- Type coersion, ignore
- call_
center - Helper macro for creating call centers from operations Example usage:
- call_
center_ handlers - Helper macro for easily consuming calls that come from a call handler Example usage:
Structs§
- Phone
- Created by a telephone center, it can be used to make calls to it, its cloneable
- Telephone
Center - The telephone center can be used to handle calls coming from callees (phones)
Traits§
- Call
Center - Trait defining the call enum for a given call center
- Make
Call On - Usually implemented automatically, when done so, it signifies that an operation is callable on the given call center
- Telephone
Operation - Describes a telephone operation An operation can be callable on multiple call centers