Macro mpstthree::bundle_impl [−][src]
macro_rules! bundle_impl { ($meshedchannels_name : ident => $($all_roles : ident), + $(,) ?) => { ... }; ($meshedchannels_name : ident => $($all_roles : ident), + $(,) ? => $fork_mpst : ident) => { ... }; }
Expand description
Create a new SessionMST structuren, new roles and the baking environment.
Arguments
- Name of the new SessionMST
- Names of the new roles
- [Optional (1)] Name of the new fork function
Basic example
use mpstthree::bundle_impl; bundle_impl!(MeshedChannelsThree => A, B, C);
Example with fork
use mpstthree::bundle_impl; bundle_impl!(MeshedChannelsThree => A, B, C => fork_mpst);