pub enum ContainerPowerControllerRequest {
Wake {
payload: ContainerPowerControllerWakeRequest,
control_handle: ContainerPowerControllerControlHandle,
},
RegisterWakeWatcher {
payload: ContainerPowerControllerRegisterWakeWatcherRequest,
responder: ContainerPowerControllerRegisterWakeWatcherResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ContainerPowerControllerControlHandle,
method_type: MethodType,
},
}
Expand description
Protocol that allows a binder server to request changes to the container’s power state.
Variants§
Wake
This requests that the container wakes up to service requests.
Fields
§
payload: ContainerPowerControllerWakeRequest
§
control_handle: ContainerPowerControllerControlHandle
RegisterWakeWatcher
Registers an eventpair that will be signaled when the container is suspended or resumed. The signals are ASLEEP(USER_1) and AWAKE(USER_0).
The kernel returns AWAKE upon initial registration of the eventpair.
Fields
_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: ContainerPowerControllerControlHandle
§
method_type: MethodType
Implementations§
Source§impl ContainerPowerControllerRequest
impl ContainerPowerControllerRequest
pub fn into_wake( self, ) -> Option<(ContainerPowerControllerWakeRequest, ContainerPowerControllerControlHandle)>
pub fn into_register_wake_watcher( self, ) -> Option<(ContainerPowerControllerRegisterWakeWatcherRequest, ContainerPowerControllerRegisterWakeWatcherResponder)>
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 ContainerPowerControllerRequest
impl !RefUnwindSafe for ContainerPowerControllerRequest
impl Send for ContainerPowerControllerRequest
impl Sync for ContainerPowerControllerRequest
impl Unpin for ContainerPowerControllerRequest
impl !UnwindSafe for ContainerPowerControllerRequest
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