pub enum BlockingListenerRequest {
OnResumeStarted {
responder: BlockingListenerOnResumeStartedResponder,
},
OnSuspendFailed {
responder: BlockingListenerOnSuspendFailedResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: BlockingListenerControlHandle,
method_type: MethodType,
},
}
Expand description
Interface implemented by components which elect to receive power-state callbacks from a Session, and have the Session block related power operations until the component replies.
Closing the server endpoint of BlockingListener
will
remove the blocking listener from the registry and unblock
related power operations.
Variants§
OnResumeStarted
Called by the ListenerRegistry
to inform the component
that the system has started resuming.
The callee SHOULD minimize the time it (the callee) takes to reply, since other power operations may block until the callee replies.
The caller SHOULD interpret an UNKNOWN_METHOD
response as an
indication that the callee has no work that would block the
resume process.
Fields
responder: BlockingListenerOnResumeStartedResponder
OnSuspendFailed
Called by the ListenerRegistry
to inform the component
that a suspend attempt failed.
The callee SHOULD minimize the time it (callee) takes to reply, since later suspends may block until the callee replies.
The caller SHOULD interpret an UNKNOWN_METHOD
response as an
indication that the callee has no work that would block future
power-state changes.
Fields
responder: BlockingListenerOnSuspendFailedResponder
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: BlockingListenerControlHandle
method_type: MethodType
Implementations§
Source§impl BlockingListenerRequest
impl BlockingListenerRequest
pub fn into_on_resume_started( self, ) -> Option<BlockingListenerOnResumeStartedResponder>
pub fn into_on_suspend_failed( self, ) -> Option<BlockingListenerOnSuspendFailedResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL