Macro mpstthree::create_broadcast_role

source ·
macro_rules! create_broadcast_role {
    ($role_name:ident, $dual_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.

§Arguments

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

§Example

use mpstthree::create_broadcast_role;

// Create the roles *AlltoC* and *CtoAll*
create_broadcast_role!(AlltoC, CtoAll);

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