template <>
class NaturalWeakEventSender
Defined at line 332 of file fidling/gen/sdk/fidl/fuchsia.component.runner/fuchsia.component.runner/cpp/fidl/fuchsia.component.runner/cpp/natural_messaging.h
Public Methods
::fit::result< ::fidl::OneWayError> OnPublishDiagnostics (::fuchsia_component_runner::ComponentControllerOnPublishDiagnosticsRequest payload)
Event for runners to publish diagnostics to the platform.
This event signals to the platform that the runner for this
component is publishing diagnostics about the runtime of the
component. The component manager may optionally expose this data
to clients.
::fit::result< ::fidl::OneWayError> OnEscrow (::fuchsia_component_runner::ComponentControllerOnEscrowRequest payload)
Store some of the component's state in the framework, to be redelivered
to the component the next time it's started (a practice called
"escrowing").
When the framework receives this event, it will wait until the current
execution of the component has finished, then start the component again
when the `ZX_CHANNEL_READABLE` signal is observed on `outgoing_dir`.
Repeated calls will replace the old escrowed value. This is discouraged.
Handles escrowed via `OnEscrow` are always delivered to the next
execution of the component.
::fit::result< ::fidl::OneWayError> OnStop (::fuchsia_component_runner::ComponentStopInfo payload)
Report that the component has stopped, with data about its termination. This will
cause the component to make a lifecycle transition to `Stopped`.
Once the runner has sent `OnStop` it is free to close this [ComponentRunner]; the
component framework will close its end of the channel when it receives this event.
Alternatively, a runner may close the controller channel without this event to signal
component stop, but this method is legacy and no longer recommended.