Drive one service exchange on the session's runtime, mapping the transport/domain status to the CLI's error vocabulary.
(&self, exchange: F)
| 236 | /// Drive one service exchange on the session's runtime, mapping the |
| 237 | /// transport/domain status to the CLI's error vocabulary. |
| 238 | fn call<T, F, Fut>(&self, exchange: F) -> CliResult<T> |
| 239 | where |
| 240 | F: FnOnce(Backend) -> Fut, |
| 241 | Fut: std::future::Future<Output = Result<T, Status>>, |
| 242 | { |
| 243 | let backend = self.backend(); |
| 244 | self.rt.block_on(exchange(backend)).map_err(status_message) |
| 245 | } |
| 246 | |
| 247 | /// The mode this session was opened in (the journal sink and other |
| 248 | /// mode-aware components ask). |
no test coverage detected