template <>

class Server

Defined at line 2379 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_messaging.h

Public Methods

void Launch (LaunchRequest & request, LaunchCompleter::Sync & completer)

Launch a new guest instance.

Possible errors:

- BAD_CONFIG: Failed to parse the config from the guest package, or other config

problems detected by the guest manager.

- ALREADY_RUNNING: The guest is already running. Stop the guest before launching again.

- START_FAILURE: Failed to initialize the VMM and devices, and start the guest. See

component logs for a more specific failure.

void ForceShutdown (ForceShutdownCompleter::Sync & completer)

Forcibly shuts down a running guest. Immediately after ForceShutdown returns, Launch can

be used to launch another guest.

void Connect (ConnectRequest & request, ConnectCompleter::Sync & completer)

Connect to a currently running guest.

Possible errors:

- NOT_RUNNING: Attempted to connect to a guest in a non-running state. Ensure the guest

has launched before attempting to reconnect.

void GetInfo (GetInfoCompleter::Sync & completer)

Query guest info

void Server ()

Defined at line 2382 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_messaging.h

Handler bind_handler (async_dispatcher_t * dispatcher)

|bind_handler| returns a handler that binds incoming connections to this

server implementation.

The returned handler borrows the server instance.

The server must outlive the provided |dispatcher|. Only after

the dispatcher is shutdown will it be safe to destroy the servers.

The server should not be moved.

void ~Server ()

Defined at line 2383 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/natural_messaging.h