pub struct ComponentRunnerSynchronousProxy { /* private fields */ }
Implementations§
source§impl ComponentRunnerSynchronousProxy
impl ComponentRunnerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<ComponentRunnerEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<ComponentRunnerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn start(
&self,
start_info: ComponentStartInfo,
controller: ServerEnd<ComponentControllerMarker>
) -> Result<(), Error>
pub fn start( &self, start_info: ComponentStartInfo, controller: ServerEnd<ComponentControllerMarker> ) -> Result<(), Error>
Start running a component instance described by start_info
.
Component manager binds and uses controller
to control the
lifetime of the newly started component instance.
Errors are delivered as epitaphs over the ComponentController
protocol. In the event of an error, the runner must ensure that
resources are cleaned up.
Errors: