pub enum SuspenderRequest {
GetSuspendStates {
responder: SuspenderGetSuspendStatesResponder,
},
Suspend {
payload: SuspenderSuspendRequest,
responder: SuspenderSuspendResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: SuspenderControlHandle,
method_type: MethodType,
},
}
Variants§
GetSuspendStates
Returns a list of [fuchsia.hardware.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.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: SuspenderGetSuspendStatesResponder
Suspend
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.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: SuspenderControlHandle
method_type: MethodType
Implementations§
Source§impl SuspenderRequest
impl SuspenderRequest
pub fn into_get_suspend_states( self, ) -> Option<SuspenderGetSuspendStatesResponder>
pub fn into_suspend( self, ) -> Option<(SuspenderSuspendRequest, SuspenderSuspendResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL