pub struct LifecycleControllerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LifecycleControllerSynchronousProxy
impl LifecycleControllerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LifecycleControllerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LifecycleControllerEvent, 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_instance(
&self,
moniker: &str,
binder: ServerEnd<BinderMarker>,
___deadline: MonotonicInstant,
) -> Result<LifecycleControllerStartInstanceResult, Error>
pub fn start_instance( &self, moniker: &str, binder: ServerEnd<BinderMarker>, ___deadline: MonotonicInstant, ) -> Result<LifecycleControllerStartInstanceResult, Error>
Starts the instance identified by the given moniker. Relative monikers must start with “./”.
The client can pass in the server end of a channel for the fuchsia.component.Binder protocol. This protocol will notify the client when the instance has stopped.
The function returns once the instance has been started. Calling StartInstance() when the instance is already running is a no-op, but it will connect the Binder channel if a valid handle is provided.
pub fn start_instance_with_args( &self, moniker: &str, binder: ServerEnd<BinderMarker>, args: StartChildArgs, ___deadline: MonotonicInstant, ) -> Result<LifecycleControllerStartInstanceWithArgsResult, Error>
Sourcepub fn stop_instance(
&self,
moniker: &str,
___deadline: MonotonicInstant,
) -> Result<LifecycleControllerStopInstanceResult, Error>
pub fn stop_instance( &self, moniker: &str, ___deadline: MonotonicInstant, ) -> Result<LifecycleControllerStopInstanceResult, Error>
Stops the instance identified by the given moniker. Relative monikers must start with “./”.
The function returns once the instance has been stopped.
Sourcepub fn resolve_instance(
&self,
moniker: &str,
___deadline: MonotonicInstant,
) -> Result<LifecycleControllerResolveInstanceResult, Error>
pub fn resolve_instance( &self, moniker: &str, ___deadline: MonotonicInstant, ) -> Result<LifecycleControllerResolveInstanceResult, Error>
Resolves the instance identified by the given moniker. Relative monikers must start with “./”.
The function returns once the instance has been resolved.
Sourcepub fn unresolve_instance(
&self,
moniker: &str,
___deadline: MonotonicInstant,
) -> Result<LifecycleControllerUnresolveInstanceResult, Error>
pub fn unresolve_instance( &self, moniker: &str, ___deadline: MonotonicInstant, ) -> Result<LifecycleControllerUnresolveInstanceResult, Error>
Unresolves the component designated by the provided moniker. Relative monikers must start with “./”.
The function returns once the instance has been unresolved.
Sourcepub fn create_instance(
&self,
parent_moniker: &str,
collection: &CollectionRef,
decl: &Child,
args: CreateChildArgs,
___deadline: MonotonicInstant,
) -> Result<LifecycleControllerCreateInstanceResult, Error>
pub fn create_instance( &self, parent_moniker: &str, collection: &CollectionRef, decl: &Child, args: CreateChildArgs, ___deadline: MonotonicInstant, ) -> Result<LifecycleControllerCreateInstanceResult, Error>
Creates a new child instance identified by the given moniker. Relative monikers must start with “./”.
The function returns once the child instance has been added to the topology.
Sourcepub fn destroy_instance(
&self,
parent_moniker: &str,
child: &ChildRef,
___deadline: MonotonicInstant,
) -> Result<LifecycleControllerDestroyInstanceResult, Error>
pub fn destroy_instance( &self, parent_moniker: &str, child: &ChildRef, ___deadline: MonotonicInstant, ) -> Result<LifecycleControllerDestroyInstanceResult, Error>
Destroys the instance identified by the given moniker. Relative monikers must start with “./”.
The function returns once the child instance no longer exists in the topology.
Trait Implementations§
Source§impl SynchronousProxy for LifecycleControllerSynchronousProxy
impl SynchronousProxy for LifecycleControllerSynchronousProxy
Source§type Proxy = LifecycleControllerProxy
type Proxy = LifecycleControllerProxy
Source§type Protocol = LifecycleControllerMarker
type Protocol = LifecycleControllerMarker
Proxy
controls.