template <>

class WireServer

Defined at line 5802 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_virtualization::GuestManager>|

and |::fidl::ServerEnd

<

::fuchsia_virtualization::GuestManager>|).

Public Methods

void Launch (::fuchsia_virtualization::wire::GuestManagerLaunchRequest * 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 (::fuchsia_virtualization::wire::GuestManagerConnectRequest * 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 WireServer ()

Defined at line 5805 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_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 ~WireServer ()

Defined at line 5806 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h