Macro mpstthree::create_send_mpst_session_2[][src]

macro_rules! create_send_mpst_session_2 {
    ($func_name : ident, $role : ident, $name : ident) => { ... };
}
Expand description

Create a send function to send on the second binary session from any kind of role. Must be used with mpstthree::meshedchannels::MeshedChannels.

Arguments

  • The name of the new send function
  • The name of the receiver
  • The name of the sender

Example

use mpstthree::meshedchannels::MeshedChannels;
use mpstthree::{create_normal_role, create_send_mpst_session_2};

create_normal_role!(RoleA, RoleADual);
create_normal_role!(RoleC, RoleCDual);

create_send_mpst_session_2!(send_mpst_a_to_c, RoleC, RoleA);