pub struct LifecycleControllerProxy { /* private fields */ }
Implementations§
Source§impl LifecycleControllerProxy
impl LifecycleControllerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.sys2/LifecycleController.
Sourcepub fn take_event_stream(&self) -> LifecycleControllerEventStream
pub fn take_event_stream(&self) -> LifecycleControllerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn start_instance(
&self,
moniker: &str,
binder: ServerEnd<BinderMarker>,
) -> QueryResponseFut<LifecycleControllerStartInstanceResult, DefaultFuchsiaResourceDialect>
pub fn start_instance( &self, moniker: &str, binder: ServerEnd<BinderMarker>, ) -> QueryResponseFut<LifecycleControllerStartInstanceResult, DefaultFuchsiaResourceDialect>
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, ) -> QueryResponseFut<LifecycleControllerStartInstanceWithArgsResult, DefaultFuchsiaResourceDialect>
Sourcepub fn stop_instance(
&self,
moniker: &str,
) -> QueryResponseFut<LifecycleControllerStopInstanceResult, DefaultFuchsiaResourceDialect>
pub fn stop_instance( &self, moniker: &str, ) -> QueryResponseFut<LifecycleControllerStopInstanceResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<LifecycleControllerResolveInstanceResult, DefaultFuchsiaResourceDialect>
pub fn resolve_instance( &self, moniker: &str, ) -> QueryResponseFut<LifecycleControllerResolveInstanceResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<LifecycleControllerUnresolveInstanceResult, DefaultFuchsiaResourceDialect>
pub fn unresolve_instance( &self, moniker: &str, ) -> QueryResponseFut<LifecycleControllerUnresolveInstanceResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<LifecycleControllerCreateInstanceResult, DefaultFuchsiaResourceDialect>
pub fn create_instance( &self, parent_moniker: &str, collection: &CollectionRef, decl: &Child, args: CreateChildArgs, ) -> QueryResponseFut<LifecycleControllerCreateInstanceResult, DefaultFuchsiaResourceDialect>
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,
) -> QueryResponseFut<LifecycleControllerDestroyInstanceResult, DefaultFuchsiaResourceDialect>
pub fn destroy_instance( &self, parent_moniker: &str, child: &ChildRef, ) -> QueryResponseFut<LifecycleControllerDestroyInstanceResult, DefaultFuchsiaResourceDialect>
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 Clone for LifecycleControllerProxy
impl Clone for LifecycleControllerProxy
Source§fn clone(&self) -> LifecycleControllerProxy
fn clone(&self) -> LifecycleControllerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LifecycleControllerProxy
impl Debug for LifecycleControllerProxy
Source§impl LifecycleControllerProxyInterface for LifecycleControllerProxy
impl LifecycleControllerProxyInterface for LifecycleControllerProxy
type StartInstanceResponseFut = QueryResponseFut<Result<(), StartError>>
type StartInstanceWithArgsResponseFut = QueryResponseFut<Result<(), StartError>>
type StopInstanceResponseFut = QueryResponseFut<Result<(), StopError>>
type ResolveInstanceResponseFut = QueryResponseFut<Result<(), ResolveError>>
type UnresolveInstanceResponseFut = QueryResponseFut<Result<(), UnresolveError>>
type CreateInstanceResponseFut = QueryResponseFut<Result<(), CreateError>>
type DestroyInstanceResponseFut = QueryResponseFut<Result<(), DestroyError>>
fn start_instance( &self, moniker: &str, binder: ServerEnd<BinderMarker>, ) -> Self::StartInstanceResponseFut
fn start_instance_with_args( &self, moniker: &str, binder: ServerEnd<BinderMarker>, args: StartChildArgs, ) -> Self::StartInstanceWithArgsResponseFut
fn stop_instance(&self, moniker: &str) -> Self::StopInstanceResponseFut
fn resolve_instance(&self, moniker: &str) -> Self::ResolveInstanceResponseFut
fn unresolve_instance( &self, moniker: &str, ) -> Self::UnresolveInstanceResponseFut
fn create_instance( &self, parent_moniker: &str, collection: &CollectionRef, decl: &Child, args: CreateChildArgs, ) -> Self::CreateInstanceResponseFut
fn destroy_instance( &self, parent_moniker: &str, child: &ChildRef, ) -> Self::DestroyInstanceResponseFut
Source§impl Proxy for LifecycleControllerProxy
impl Proxy for LifecycleControllerProxy
Source§type Protocol = LifecycleControllerMarker
type Protocol = LifecycleControllerMarker
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 LifecycleControllerProxy
impl !RefUnwindSafe for LifecycleControllerProxy
impl Send for LifecycleControllerProxy
impl Sync for LifecycleControllerProxy
impl Unpin for LifecycleControllerProxy
impl !UnwindSafe for LifecycleControllerProxy
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
)