template <>
class WireServer
Defined at line 827 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.suspend/fuchsia.hardware.power.suspend/cpp/fidl/fuchsia.hardware.power.suspend/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_hardware_power_suspend::Suspender>|
and |::fidl::ServerEnd
<
::fuchsia_hardware_power_suspend::Suspender>|).
Public Methods
void GetSuspendStates (GetSuspendStatesCompleter::Sync & completer)
Returns a list of [`fuchsia.hardware.power.suspend/SuspendState`] supported.
by the system. The system must return at least 1 suspend state which
corresponds to the "suspend-to-idle" state but may return up to
[`fuchsia.hardware.power.suspend/MAX_SUSPEND_STATES`] states.
The suspend states must be ordered in order of decreasing
`resume_latency` (and thereby increasing power consumption).
A particular build of the system must always return the same set of
suspend states.
void Suspend (::fuchsia_hardware_power_suspend::wire::SuspenderSuspendRequest * request, SuspendCompleter::Sync & completer)
Instruct the system to suspend.
This call may return a ZX_ERR_* if the system was unable to suspend.
If the call succeeds, it will not return until the system has resumed.
Being interrupted while suspending and resuming before fully suspending
is not an error however `suspend_duration` must be None if the suspend
was interrupted.
void ForceLowestPowerMode (::fuchsia_hardware_power_suspend::wire::SuspenderForceLowestPowerModeRequest * request, ForceLowestPowerModeCompleter::Sync & completer)
Forcibly puts the system into its lowest power mode.
TODO(b/454722784): Consider removing this in the future.
void WireServer ()
Defined at line 830 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.suspend/fuchsia.hardware.power.suspend/cpp/fidl/fuchsia.hardware.power.suspend/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 831 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.suspend/fuchsia.hardware.power.suspend/cpp/fidl/fuchsia.hardware.power.suspend/cpp/wire_messaging.h