pub enum LifecycleRequest {
Stop {
control_handle: LifecycleControlHandle,
},
}
Expand description
A component can implement the Lifecycle protocol to be notified of lifecycle events. It can also store some state in the framework, to be redelivered to the component the next time it is started (a practice called “escrowing”).
The ELF Runner uses this protocol to communicate lifecycle changes to the component, for more details on how it uses this protocol see: https://fuchsia.dev/fuchsia-src/concepts/components/v2/elf_runner#lifecycle
Variants§
Stop
The process must clean up its state in preparation for termination, and
must close the channel hosting the Lifecycle
protocol when it is
ready to be terminated. The process should exit after it completes its
cleanup. At the discretion of the system the process may be terminated
before it closes the Lifecycle
channel.
Fields
control_handle: LifecycleControlHandle
Implementations§
Source§impl LifecycleRequest
impl LifecycleRequest
pub fn into_stop(self) -> Option<LifecycleControlHandle>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL