Macro capnp_rpc::pry[][src]

macro_rules! pry {
    ($expr:expr) => { ... };
}

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).