macro_rules! try_fus {
($e: expr) => { ... };
}
Expand description
Lifts an error into a boxed future. Box<Future<Item=_, Error=String>>
.
fn foo() -> Box<Future<Item=u32, Error=String>> {
try_fus! (bar());
let another_future = try_fus! (whatever());
Box::new (another_future.then (move |something| Ok (123)))
}