Macro capnp_rpc::pry

source ·
macro_rules! pry {
    ($expr:expr) => { ... };
}
Expand description

Like try!(), but for functions that return a Promise<T, E> rather than a Result<T, E>.

Unwraps a Result<T, E>. In the case of an error Err(e), immediately returns from the enclosing function with Promise::err(e).