Check before `record --all` stages any files on an older Reactor.
(&self)
| 586 | |
| 587 | /// Check before `record --all` stages any files on an older Reactor. |
| 588 | pub fn ensure_record_file_options(&self) -> CliResult<()> { |
| 589 | self.call(move |backend| async move { |
| 590 | match backend { |
| 591 | Backend::Local(_) => Ok(()), |
| 592 | Backend::Reactor(channel) => { |
| 593 | let capabilities = pb::daemon_service_client::DaemonServiceClient::new(channel) |
| 594 | .get_capabilities(pb::GetCapabilitiesRequest {}) |
| 595 | .await? |
| 596 | .into_inner(); |
| 597 | require_record_file_options(&capabilities) |
| 598 | } |
| 599 | } |
| 600 | }) |
| 601 | } |
| 602 | |
| 603 | pub fn remove_files( |
| 604 | &self, |
no test coverage detected