template <>

class WireSyncClientImpl

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

Methods to make a sync FIDL call directly on an unowned handle or a

const reference to a |::fidl::ClientEnd

<

::fuchsia_hardware_power_statecontrol::ShutdownWatcherRegister>|,

avoiding setting up a client.

Public Methods

::fidl::WireResult< ::fuchsia_hardware_power_statecontrol::ShutdownWatcherRegister::RegisterWatcher> RegisterWatcher (::fidl::ClientEnd< ::fuchsia_hardware_power_statecontrol::ShutdownWatcher> && watcher)

Registers a watcher to be notified when the Shutdown method is called.

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

the request will be completed and the ShutdownWatcherRegister

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

ShutdownWatcherRegister 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 shutdown and allow it the chance to respond.

Watchers can unregister by closing their `ShutdownWatcher` channel.

Allocates 56 bytes of message buffer on the stack. No heap allocation necessary.