pub struct ComponentControllerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ComponentControllerSynchronousProxy
impl ComponentControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ComponentControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ComponentControllerEvent, 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 stop(&self) -> Result<(), Error>
pub fn stop(&self) -> Result<(), Error>
Request to stop the component instance.
After stopping the component instance, the server should close this connection with an epitaph. After the connection closes, component manager considers this component instance to be Stopped and the component’s namespace will be torn down.
Sourcepub fn kill(&self) -> Result<(), Error>
pub fn kill(&self) -> Result<(), Error>
Stop this component instance immediately.
The ComponentRunner must immediately kill the component instance, and then close this connection with an epitaph. After the connection closes, component manager considers this component instance to be Stopped and the component’s namespace will be torn down.
In some cases Kill() may be issued before Stop(), but that is not guaranteed.
Trait Implementations§
Source§impl SynchronousProxy for ComponentControllerSynchronousProxy
impl SynchronousProxy for ComponentControllerSynchronousProxy
Source§type Proxy = ComponentControllerProxy
type Proxy = ComponentControllerProxy
Source§type Protocol = ComponentControllerMarker
type Protocol = ComponentControllerMarker
Proxy
controls.