mpstthree/macros_multiple/
meshedchannels.rs

1//! This module contains the macros
2//! for creating MeshedChannels for any number
3//! of participants.
4//!
5//! *This module is available only if MultiCrusty is built with
6//! the `"macros_multiple"` feature.*
7
8/// Creates a MeshedChannels for more than 3 participants.
9///
10/// # Arguments
11///
12/// * The name of the *MeshedChannels* type that will be used
13/// * The number of participants (all together)
14///
15/// # Example
16///
17/// ```
18/// use mpstthree::create_meshedchannels;
19///
20/// create_meshedchannels!(MeshedChannels, 3);
21/// ```
22///
23/// *This macro is available only if MultiCrusty is built with
24/// the `"macros_multiple"` feature.*
25#[macro_export]
26#[cfg_attr(doc_cfg, doc(cfg(feature = "macros_multiple")))]
27macro_rules! create_meshedchannels {
28    ($meshedchannels_name:ident, $n_sessions:literal) => {
29        mpst_seq_proc::create_meshedchannels!($meshedchannels_name, $n_sessions);
30    };
31}