Function rusty_variation::offer_either [−][src]
pub fn offer_either<'a, S1: Session, S2: Session, F, G, R>(
s: Offer<S1, S2>,
f: F,
g: G
) -> Result<R, Box<Error + 'a>> where
F: FnOnce(S1) -> Result<R, Box<Error + 'a>>,
G: FnOnce(S2) -> Result<R, Box<Error + 'a>>,