template <>

class Server

Defined at line 303 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/cpp/natural_messaging.h

Public Methods

void GetString (GetStringRequest & request, GetStringCompleter::Sync & completer)

Get the value of a boot argument `key`.

void GetStrings (GetStringsRequest & request, GetStringsCompleter::Sync & completer)

Get the values of a list of arguments specified in `keys`.

void GetBool (GetBoolRequest & request, GetBoolCompleter::Sync & completer)

Get the boolean value of a boot argument `keys`,

or return `defaultval` if the argument is not present.

A key is considered to be false if its string value is exactly

"off", "0", or "false". Any other value (including empty) is returned

as true.

void GetBools (GetBoolsRequest & request, GetBoolsCompleter::Sync & completer)

Get the boolean values of a list of boot arguments `keys.key`,

or return `keys.defaultval` for each if not present.

void Collect (CollectRequest & request, CollectCompleter::Sync & completer)

Get all boot arguments with keys starting with

`prefix`. Returns a vector with strings of the form 'key=value'.

TODO(https://fxbug.dev/42108659) - remove Collect once boot arguments have been componentised.

void Server ()

Defined at line 306 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/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 307 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/cpp/natural_messaging.h