macro_rules! bundle_struct_fork_close_multi_cancel {
(
$func_name_close:ident,
$func_name_fork:ident,
$meshedchannels_name:ident,
$n_sessions:literal
) => { ... };
}
Available on crate feature
macros_multiple
only.Expand description
Creates the structure MeshedChannels
create_meshedchannels
,
the close_mpst_cancel
and
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);
This macro is available only if MultiCrusty is built with
the "macros_multiple"
feature.