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