Macro mpstthree::create_broadcast_role [−][src]
macro_rules! create_broadcast_role { ($role_name : ident, $dual_name : ident) => { ... }; }
Expand description
Create a new broadcast mpstthree::role::Role
and its dual.
A broadcast mpstthree::role::Role
is used for sending a
choice. Its dual is used for receving this choice.
Arguments
- The name of the new
mpstthree::role::Role
- The name of the dual of the new
mpstthree::role::Role
Example
use mpstthree::create_broadcast_role; create_broadcast_role!(RoleAlltoC, RoleCtoAll);