macro_rules! create_multiple_broadcast_role {
    ($( $role_name: ident, $dual_name: ident | )+ ) => { ... };
}
Available on crate feature macros_simple only.
Expand description

Create multiple new broadcast Role and its dual. A broadcast Role is used for sending a choice. Its dual is used for receving this choice.

Arguments

  • The name of the new Role
  • The name of the dual of the new Role

Example

use mpstthree::create_multiple_broadcast_role;

// Create the roles *AlltoC*, *CtoAll*, *AlltoD* and *DtoAll*
create_multiple_broadcast_role!(
   AlltoC,
   CtoAll |
   AlltoD,
   DtoAll|
);

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