pub enum ActivityGovernorListenerRequest {
OnResume {
responder: ActivityGovernorListenerOnResumeResponder,
},
OnSuspend {
control_handle: ActivityGovernorListenerControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: ActivityGovernorListenerControlHandle,
method_type: MethodType,
},
}
Expand description
A listener for activity governor events.
Variants§
OnResume
Called when the activity governor detects a system resume.
This is only called when the wakeup reason returned by the platform requires a full system resume. The server is expected to respond once it has performed the operations required to keep the system awake, if needed.
Fields
§
responder: ActivityGovernorListenerOnResumeResponder
OnSuspend
Called when the activity governor detects a system suspension.
There is no guarantee the server will receive this message before suspension is triggered by the platform.
Fields
§
control_handle: ActivityGovernorListenerControlHandle
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: ActivityGovernorListenerControlHandle
§
method_type: MethodType
Implementations§
source§impl ActivityGovernorListenerRequest
impl ActivityGovernorListenerRequest
pub fn into_on_resume(self) -> Option<ActivityGovernorListenerOnResumeResponder>
pub fn into_on_suspend(self) -> Option<ActivityGovernorListenerControlHandle>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActivityGovernorListenerRequest
impl !RefUnwindSafe for ActivityGovernorListenerRequest
impl Send for ActivityGovernorListenerRequest
impl Sync for ActivityGovernorListenerRequest
impl Unpin for ActivityGovernorListenerRequest
impl !UnwindSafe for ActivityGovernorListenerRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more