pub struct ControllerProxy { /* private fields */ }Implementations§
Source§impl ControllerProxy
impl ControllerProxy
Sourcepub fn take_event_stream(&self) -> ControllerEventStream
pub fn take_event_stream(&self) -> ControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn start(
&self,
args: StartChildArgs,
execution_controller: ServerEnd<ExecutionControllerMarker>,
) -> QueryResponseFut<ControllerStartResult, FDomainResourceDialect>
pub fn start( &self, args: StartChildArgs, execution_controller: ServerEnd<ExecutionControllerMarker>, ) -> QueryResponseFut<ControllerStartResult, FDomainResourceDialect>
Start the component, optionally providing additional handles to be given to the component. Returns INSTANCE_ALREADY_RUNNING if the instance is currently running.
Sourcepub fn is_started(
&self,
) -> QueryResponseFut<ControllerIsStartedResult, FDomainResourceDialect>
pub fn is_started( &self, ) -> QueryResponseFut<ControllerIsStartedResult, FDomainResourceDialect>
Returns true if this instance is currently running.
Sourcepub fn open_exposed_dir(
&self,
exposed_dir: ServerEnd<DirectoryMarker>,
) -> QueryResponseFut<ControllerOpenExposedDirResult, FDomainResourceDialect>
pub fn open_exposed_dir( &self, exposed_dir: ServerEnd<DirectoryMarker>, ) -> QueryResponseFut<ControllerOpenExposedDirResult, FDomainResourceDialect>
Opens the exposed directory of the controlled component, through which
capabilities the component exposed via ComponentDecl.exposes are
available, on success.
Binding to the exposed directory requires that the component be resolved, but it will not be started until/unless some capability is requested that requires it to be.
If this component is destroyed, any outstanding connections to
exposed_dir will be closed.
Errors:
INSTANCE_CANNOT_RESOLVE: This component failed to resolve.
Sourcepub fn get_exposed_dictionary(
&self,
) -> QueryResponseFut<ControllerGetExposedDictionaryResult, FDomainResourceDialect>
pub fn get_exposed_dictionary( &self, ) -> QueryResponseFut<ControllerGetExposedDictionaryResult, FDomainResourceDialect>
Returns the dictionary containing the component’s exposed capabilities.
Sourcepub fn destroy(
&self,
) -> QueryResponseFut<ControllerDestroyResult, FDomainResourceDialect>
pub fn destroy( &self, ) -> QueryResponseFut<ControllerDestroyResult, FDomainResourceDialect>
Destroys this component. When this method returns, the component is either destroyed or in the case of an error no destruction happened.
Errors:
ACCESS_DENIED: Destruction of this component is not allowed. Currently, this can happen if the component is a static child of its parent.INTERNAL: Something prevented destruction from succeeding – component manager’s logs will contain more detail.
Trait Implementations§
Source§impl Clone for ControllerProxy
impl Clone for ControllerProxy
Source§fn clone(&self) -> ControllerProxy
fn clone(&self) -> ControllerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ControllerProxyInterface for ControllerProxy
impl ControllerProxyInterface for ControllerProxy
type StartResponseFut = QueryResponseFut<Result<(), Error>, FDomainResourceDialect>
type IsStartedResponseFut = QueryResponseFut<Result<bool, Error>, FDomainResourceDialect>
type OpenExposedDirResponseFut = QueryResponseFut<Result<(), Error>, FDomainResourceDialect>
type GetExposedDictionaryResponseFut = QueryResponseFut<Result<DictionaryRef, Error>, FDomainResourceDialect>
type DestroyResponseFut = QueryResponseFut<Result<(), Error>, FDomainResourceDialect>
fn start( &self, args: StartChildArgs, execution_controller: ServerEnd<ExecutionControllerMarker>, ) -> Self::StartResponseFut
fn is_started(&self) -> Self::IsStartedResponseFut
fn open_exposed_dir( &self, exposed_dir: ServerEnd<DirectoryMarker>, ) -> Self::OpenExposedDirResponseFut
fn get_exposed_dictionary(&self) -> Self::GetExposedDictionaryResponseFut
fn destroy(&self) -> Self::DestroyResponseFut
Source§impl Debug for ControllerProxy
impl Debug for ControllerProxy
Source§impl Proxy for ControllerProxy
impl Proxy for ControllerProxy
Source§type Protocol = ControllerMarker
type Protocol = ControllerMarker
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Source§fn into_channel(self) -> Result<Channel, Self>
fn into_channel(self) -> Result<Channel, Self>
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Auto Trait Implementations§
impl Freeze for ControllerProxy
impl !RefUnwindSafe for ControllerProxy
impl Send for ControllerProxy
impl Sync for ControllerProxy
impl Unpin for ControllerProxy
impl !UnwindSafe for ControllerProxy
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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]