template <>

class WireServer

Defined at line 2918 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::LinuxManager>|

and |::fidl::ServerEnd

<

::fuchsia_virtualization::LinuxManager>|).

Public Methods

void StartAndGetLinuxGuestInfo (::fuchsia_virtualization::wire::LinuxManagerStartAndGetLinuxGuestInfoRequest * request, StartAndGetLinuxGuestInfoCompleter::Sync & completer)

Get Linux guest environment info.

Returns ZX_ERR_UNAVAILABLE if the Linux guest is not available.

void WipeData (WipeDataCompleter::Sync & completer)

Clears the stateful data. This includes any installed containers and any user data

they may contain.

Returns ZX_ERR_BAD_STATE if this is called while the VM is running.

Returns ZX_ERR_IO if there was an IO failure while performing the

operation.

void GracefulShutdown (GracefulShutdownCompleter::Sync & completer)

Attempts to gracefully shut down a running guest. The caller must ensure that the guest

has actually stopped (such as by waiting on a Guest client PEER_CLOSED signal and checking

the epitaph) before attempting to launch another guest.

On a clean shutdown the Guest client will contain a ZX_OK epitaph, and on an unexpected

shutdown the client will contain a ZX_ERR_INTERNAL epitaph (or no epitaph if there was

a component crash).

void WireServer ()

Defined at line 2921 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 2922 of file fidling/gen/sdk/fidl/fuchsia.virtualization/fuchsia.virtualization/cpp/fidl/fuchsia.virtualization/cpp/wire_messaging.h