Macro mpstthree::create_send_mpst_session_1

source ·
macro_rules! create_send_mpst_session_1 {
    ($func_name:ident, $receiver:ident, $sender:ident) => { ... };
}
Available on crate feature macros_simple only.
Expand description

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

§Arguments

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

§Example

use mpstthree::meshedchannels::MeshedChannels;
use mpstthree::{create_normal_name, create_normal_role, create_send_mpst_session_1};

create_normal_role!(RoleA, RoleADual);
create_normal_name!(NameC);

create_send_mpst_session_1!(send_mpst_c_to_a, RoleA, NameC);

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