pub enum ManagerRequest {
SuspendContainer {
payload: ManagerSuspendContainerRequest,
responder: ManagerSuspendContainerResponder,
},
ProxyWakeChannel {
payload: ManagerProxyWakeChannelRequest,
control_handle: ManagerControlHandle,
},
RegisterWakeWatcher {
payload: ManagerRegisterWakeWatcherRequest,
responder: ManagerRegisterWakeWatcherResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: ManagerControlHandle,
method_type: MethodType,
},
}
Variants§
SuspendContainer
Suspends the container running in job
.
The call will return successfully when wake_event
has been signaled. Returns
an error if wake_locks
is signaled at the end of suspension, or an error is
encountered when suspending the container’s processes.
ProxyWakeChannel
Creates a pass-through proxy that forwards messages between the container_channel
and the
remote_channel
.
If any messages arrive on remote_channel
while the container is suspended via
SuspendContainer
, the container will be resumed and counter
will be incremented.
Once that message is handled by the container, and it’s ok to suspend the container again (relative to that message), the counter is expected to be decremented.
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.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: ManagerControlHandle
method_type: MethodType
Implementations§
Source§impl ManagerRequest
impl ManagerRequest
pub fn into_suspend_container( self, ) -> Option<(ManagerSuspendContainerRequest, ManagerSuspendContainerResponder)>
pub fn into_proxy_wake_channel( self, ) -> Option<(ManagerProxyWakeChannelRequest, ManagerControlHandle)>
pub fn into_register_wake_watcher( self, ) -> Option<(ManagerRegisterWakeWatcherRequest, ManagerRegisterWakeWatcherResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL