Macro mpstthree::offer_cancel_mpst [−][src]
macro_rules! offer_cancel_mpst { ($session : expr, $recv_mpst : ident, { $($pat : pat => $result : expr,) * }) => { ... }; ($session : expr, { $($pat : pat => $result : expr,) * }) => { ... }; }
Expand description
Offer a choice and send the session to the pawn
Arguments
- The session to be used
- [Optional] The recv function that will be used
- Each path, which are each variant of the enum which contains the new branches
- The block of code to process each new session