template <>

class WireServer

Defined at line 713 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::BalloonController>|

and |::fidl::ServerEnd

<

::fuchsia_virtualization::BalloonController>|).

Public Methods

void GetBalloonSize (GetBalloonSizeCompleter::Sync & completer)

Get the current and requested number of pages in the memory balloon.

current_num_pages is the number of pages balloon has right now.

requested_num_pages is the desired number of pages in the balloon.

'current_num_pages' corresponds to the 'actual' virtio-balloon config field

'requested_num_pages' corresponds to the 'num_pages' virtio-balloon config field.

void RequestNumPages (::fuchsia_virtualization::wire::BalloonControllerRequestNumPagesRequest * request, RequestNumPagesCompleter::Sync & completer)

Request a number of pages to be supplied to the memory balloon.

If `requested_num_pages` is greater than the `current_num_pages` config

value, the guest driver SHOULD provide additional pages to the memory balloon.

If `requested_num_pages` is less than the 'current_num_pages' config value,

the guest driver MAY reclaim pages from the memory balloon.

void GetMemStats (GetMemStatsCompleter::Sync & completer)

Get memory statistics of the guest instance.

void WireServer ()

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