template <>
class WireServer
Defined at line 1877 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_power_broker::Lessor>|
and |::fidl::ServerEnd
<
::fuchsia_power_broker::Lessor>|).
Public Methods
void Lease (::fuchsia_power_broker::wire::LessorLeaseRequest * 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 WireServer ()
Defined at line 1880 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/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 1881 of file fidling/gen/sdk/fidl/fuchsia.power.broker/fuchsia.power.broker/cpp/fidl/fuchsia.power.broker/cpp/wire_messaging.h