template <>

class Server

Defined at line 737 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/cpp/natural_messaging.h

Public Methods

void Lease (LeaseRequest & request, LeaseCompleter::Sync & completer)

Request made to indicate the client wants the element raised to the given

level. When the call returns this **does** **not** mean the

corresponding element is at the requested level, only that the requested

level is valid and request is being worked on.

Fulfilling the request will raise the level of all the level's direct

and transitive power dependencies to their required levels. When

`LeaseControl.WatchStatus` reports `LeaseStatus::SATISFIED` this means

given element is at the level specified by the lease.

Requesting an invalid level returns `LeaseError::INVALID_LEVEL`.

void Server ()

Defined at line 740 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/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 741 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/cpp/natural_messaging.h