macro_rules! create_recv_mpst_session_2 { ($func_name:ident, $sender:ident, $receiver:ident) => { ... }; }
Available on crate feature
macros_simple
only.Expand description
Create a recv function to recv on the second binary
session from any kind of role. Must be used with
MeshedChannels
.
§Arguments
- The name of the new recv function
- The name of the sender
- The name of the receiver
§Example
use mpstthree::meshedchannels::MeshedChannels;
use mpstthree::{create_normal_name, create_normal_role, create_recv_mpst_session_2};
create_normal_role!(RoleA, RoleADual);
create_normal_role!(RoleC, RoleCDual);
create_normal_name!(NameA);
create_recv_mpst_session_2!(recv_mpst_a_from_c, RoleC, NameA);
This macro is available only if MultiCrusty is built with
the "macros_simple"
feature.