pub enum SuspenderRequest {
GetSuspendStates {
responder: SuspenderGetSuspendStatesResponder,
},
Suspend {
payload: SuspenderSuspendRequest,
responder: SuspenderSuspendResponder,
},
ForceLowestPowerMode {
payload: SuspenderForceLowestPowerModeRequest,
responder: SuspenderForceLowestPowerModeResponder,
},
#[non_exhaustive] _UnknownMethod {
ordinal: u64,
control_handle: SuspenderControlHandle,
method_type: MethodType,
},
}Variants§
GetSuspendStates
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.
Fields
responder: SuspenderGetSuspendStatesResponderSuspend
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.
ForceLowestPowerMode
Forcibly puts the system into its lowest power mode. TODO(b/454722784): Consider removing this in the future.
Fields
responder: SuspenderForceLowestPowerModeResponder#[non_exhaustive]_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: SuspenderControlHandlemethod_type: MethodTypeImplementations§
Source§impl SuspenderRequest
impl SuspenderRequest
pub fn into_get_suspend_states( self, ) -> Option<SuspenderGetSuspendStatesResponder>
pub fn into_suspend( self, ) -> Option<(SuspenderSuspendRequest, SuspenderSuspendResponder)>
pub fn into_force_lowest_power_mode( self, ) -> Option<(SuspenderForceLowestPowerModeRequest, SuspenderForceLowestPowerModeResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL