Macro mpstthree::choose_mpst_a_to_all [−][src]
macro_rules! choose_mpst_a_to_all {
($session : expr, $($label : path), + $(,) ?) => { ... };
}
Expand description
Choose, for A, among two different sessions
Arguments
- The session to be used
- The first path to be used
- The second path to be used
Example
ⓘ
match xs.pop() {
Option::Some(_) => {
let s = choose_mpst_a_to_all!(
s,
CBranchesBtoA::Video,
CBranchesCtoA::Video
);
let s = send_mpst_a_to_b(1, s);
let (_, s) = recv_mpst_a_from_b(s)?;
client_recurs(s, xs, index + 1)
}
Option::None => {
let s = choose_mpst_a_to_all!(
s,
CBranchesBtoA::End,
CBranchesCtoA::End
);
close_mpst(s)
}
}
TO TEST