(self)
| 91 | } |
| 92 | |
| 93 | pub fn result(self) -> Result<T, Error> { |
| 94 | match (self.try_result, self.catch_result) { |
| 95 | (Err(e), _) => Err(e), |
| 96 | (Ok(Ok(r)), _) => Ok(r), |
| 97 | (Ok(Err(_)), Some(r)) => r, |
| 98 | (Ok(Err(e)), None) => Err(e), |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | /// Wrapper for [`JObject`]s that implement |
no outgoing calls