template <>

class WireWeakAsyncClientImpl

Defined at line 3632 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.statecontrol/fuchsia.hardware.power.statecontrol/cpp/fidl/fuchsia.hardware.power.statecontrol/cpp/wire_messaging.h

Public Methods

::fidl::internal::WireThenable< ::fuchsia_hardware_power_statecontrol::RebootMethodsWatcherRegister::RegisterWatcher> RegisterWatcher (::fidl::ClientEnd< ::fuchsia_hardware_power_statecontrol::RebootWatcher> && watcher)

Registers a watcher to be notified when a Reboot method is called.

Once the watcher has been successfully registered with the server, then

the request will be completed and the RebootMethodsWatcherRegister

channel will be left open (though a client is free to close it at this

time).

If there is an error in registering the watcher, then the

RebootMethodsWatcherRegister channel will be closed without completing

the request.

The provided `watcher` channel will be used at most once to notify the

watcher of an impending reboot and allow it the chance to respond.

Watchers can unregister by closing their `RebootWatcher` channel.

Allocates 24 bytes of request buffer on the stack. The callback is stored on the heap.