pub enum ManagerRequest {
Suspend {
payload: ManagerSuspendRequest,
responder: ManagerSuspendResponder,
},
Resume {
payload: ManagerResumeRequest,
control_handle: ManagerControlHandle,
},
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§
Suspend
Suspends all the running Starnix kernels. Returns after all processes have been suspended.
Resume
Resumes all suspended Starnix kernels.
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 resume_event
will be signaled with
ZX_EVENT_SIGNALED
. Any suspend call that is made while that signal is present on
resume_event
will wake immediately. The container is responsible for clearing
ZX_EVENT_SIGNALED
.
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( self, ) -> Option<(ManagerSuspendRequest, ManagerSuspendResponder)>
pub fn into_resume(self) -> Option<(ManagerResumeRequest, ManagerControlHandle)>
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