Trait cm_runner::Runner

source ·
pub trait Runner: Sync + Send {
    // Required method
    fn start<'life0, 'async_trait>(
        &'life0 self,
        start_info: ComponentStartInfo,
        server_end: ServerEnd<ComponentControllerMarker>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Executes a component instance. TODO: The runner should return a trait object to allow the component instance to be stopped, binding to services, and observing abnormal termination. In other words, a wrapper that encapsulates fcrunner::ComponentController FIDL interfacing concerns. TODO: Consider defining an internal representation for fcrunner::ComponentStartInfo so as to further isolate the Model from FIDL interfacting concerns.

Required Methods§

source

fn start<'life0, 'async_trait>( &'life0 self, start_info: ComponentStartInfo, server_end: ServerEnd<ComponentControllerMarker> ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§