(&mut self, matches: &ArgMatches)
| 273 | |
| 274 | impl TargetApi<'_> { |
| 275 | fn do_command(&mut self, matches: &ArgMatches) -> ApiResult { |
| 276 | match self { |
| 277 | Self::HttpApi(api_socket, _) => rest_api_do_command(matches, api_socket), |
| 278 | #[cfg(feature = "dbus_api")] |
| 279 | Self::DBusApi(proxy) => dbus_api_do_command(matches, proxy), |
| 280 | } |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | fn rest_api_do_command(matches: &ArgMatches, socket: &mut UnixStream) -> ApiResult { |
no test coverage detected