Crate phonecall

Source
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
TelephoneCenter
The telephone center can be used to handle calls coming from callees (phones)

Traits§

CallCenter
Trait defining the call enum for a given call center
MakeCallOn
Usually implemented automatically, when done so, it signifies that an operation is callable on the given call center
TelephoneOperation
Describes a telephone operation An operation can be callable on multiple call centers