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.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for ComponentControllerProxy
impl !RefUnwindSafe for ComponentControllerProxy
impl Send for ComponentControllerProxy
impl Sync for ComponentControllerProxy
impl Unpin for ComponentControllerProxy
impl !UnwindSafe for ComponentControllerProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)