Macro mpstthree::bundle_struct_fork_close_multi_cancel [−][src]
macro_rules! bundle_struct_fork_close_multi_cancel { ($func_name_close : ident, $func_name_fork : ident, $meshedchannels_name : ident, $nsessions : literal) => { ... }; }
Expand description
Creates thestructure SessionMPST
mpstthree::create_meshedchannels
,
the mpstthree::close_mpst_cancel
and
mpstthree::fork_mpst_multi
functions to be used with more than 2 participants.
It checks the send sides of the channels along the recv sides.
Arguments
- The name of the new close function
- The name of the new fork function
- The name of the MeshedChannels type that will be used
- The number of participants (all together)
Example
use mpstthree::bundle_struct_fork_close_multi_cancel; bundle_struct_fork_close_multi_cancel!(close_mpst, fork_mpst, MeshedChannels, 3);