template <>
class NaturalClientImpl
Defined at line 822 of file fidling/gen/sdk/fidl/fuchsia.hardware.power.statecontrol/fuchsia.hardware.power.statecontrol/cpp/fidl/fuchsia.hardware.power.statecontrol/cpp/natural_messaging.h
Public Methods
::fidl::internal::NaturalThenable< ::fuchsia_hardware_power_statecontrol::Admin::PowerFullyOn> PowerFullyOn ()
Asks the device to enter a fully on state.
::fidl::internal::NaturalThenable< ::fuchsia_hardware_power_statecontrol::Admin::Shutdown> Shutdown (const ::fidl::Request< ::fuchsia_hardware_power_statecontrol::Admin::Shutdown> & request)
Asks the device to enter the state specified by `options.action`.
Arguments:
- options: The options with which to perform this request.
`ZX_ERR_INVALID_ARGS` is returned if `action` is absent.
`reasons` may be omitted, but adding a new enum value
instead is strongly encouraged.
::fidl::internal::NaturalThenable< ::fuchsia_hardware_power_statecontrol::Admin::PerformReboot> PerformReboot (const ::fidl::Request< ::fuchsia_hardware_power_statecontrol::Admin::PerformReboot> & request)
Asks the device to reboot.
Arguments:
- options: The options with which to perform this requests.
`ZX_ERR_INVALID_ARGS` is returned if the options are
malformed (i.e. `reasons` is absent or empty).
# Deprecation
Use Shutdown, which allows callers to specify the intended action and reasons for the
action.
::fidl::internal::NaturalThenable< ::fuchsia_hardware_power_statecontrol::Admin::RebootToBootloader> RebootToBootloader ()
Asks the device to reboot into the bootloader.
# Deprecation
Use Shutdown, which allows callers to specify reasons why they are requesting a reboot to
bootloader.
::fidl::internal::NaturalThenable< ::fuchsia_hardware_power_statecontrol::Admin::RebootToRecovery> RebootToRecovery ()
Asks the device to reboot into the recovery partition.
# Deprecation
Use Shutdown, which allows callers to specify reasons why they are requesting a reboot to
recovery.
::fidl::internal::NaturalThenable< ::fuchsia_hardware_power_statecontrol::Admin::Poweroff> Poweroff ()
Asks all devices to enter a powered off state.
# Deprecation
Use Shutdown, which allows callers to specify reasons why they are requesting a poweroff.
::fidl::internal::NaturalThenable< ::fuchsia_hardware_power_statecontrol::Admin::Mexec> Mexec (::fidl::Request< ::fuchsia_hardware_power_statecontrol::Admin::Mexec> request)
Performs a kernel mexec.
It is expected that the ZBI items specified by
`zx_system_mexec_payload_get()` have not yet been appended to the
provided data ZBI.
::fidl::internal::NaturalThenable< ::fuchsia_hardware_power_statecontrol::Admin::SuspendToRam> SuspendToRam ()
Asks the device to enter the suspend to RAM (S3) power state. Currently only supported on
x64. If a system state transition is already in progress then ZX_ERR_ALREADY_EXISTS is
returned. If the device fails to reach the suspend power state then ZX_ERR_INTERNAL is
returned. If the device successfully suspends, ZX_OK is returned when the device resumes.