Macro mpstthree::create_broadcast_role_short

source ·
macro_rules! create_broadcast_role_short {
    ($role_name:ident) => { ... };
}
Available on crate feature macros_simple only.
Expand description

Create a new broadcast Role and its dual. A broadcast Role is used for sending a choice. Its dual is used for receving this choice. When a name X is given, the Roles created are

  • RoleXtoAll
  • RoleAlltoX

If you want to specify other names, please use create_broadcast_role.

§Arguments

  • The name of the new Role

§Example

use mpstthree::create_broadcast_role_short;

// Create the roles *RoleAtoAll* and *RoleAlltoA*
create_broadcast_role_short!(A);

This macro is available only if MultiCrusty is built with the "macros_simple" feature.