MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / do_command

Method do_command

cloud-hypervisor/src/bin/ch-remote.rs:275–281  ·  view source on GitHub ↗
(&mut self, matches: &ArgMatches)

Source from the content-addressed store, hash-verified

273
274impl 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
284fn rest_api_do_command(matches: &ArgMatches, socket: &mut UnixStream) -> ApiResult {

Callers 1

mainFunction · 0.80

Calls 2

rest_api_do_commandFunction · 0.85
dbus_api_do_commandFunction · 0.85

Tested by

no test coverage detected