pub struct ComponentControllerProxy { /* private fields */ }
Implementations§
Source§impl ComponentControllerProxy
impl ComponentControllerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.component.runner/ComponentController.
Sourcepub fn take_event_stream(&self) -> ComponentControllerEventStream
pub fn take_event_stream(&self) -> ComponentControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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 Clone for ComponentControllerProxy
impl Clone for ComponentControllerProxy
Source§fn clone(&self) -> ComponentControllerProxy
fn clone(&self) -> ComponentControllerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ComponentControllerProxy
impl Debug for ComponentControllerProxy
Source§impl Proxy for ComponentControllerProxy
impl Proxy for ComponentControllerProxy
Source§type Protocol = ComponentControllerMarker
type Protocol = ComponentControllerMarker
Proxy
controls.