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>
pub fn start_instance( &self, moniker: &str, binder: ServerEnd<BinderMarker>, ) -> QueryResponseFut<LifecycleControllerStartInstanceResult>
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>
sourcepub fn stop_instance(
&self,
moniker: &str,
) -> QueryResponseFut<LifecycleControllerStopInstanceResult>
pub fn stop_instance( &self, moniker: &str, ) -> QueryResponseFut<LifecycleControllerStopInstanceResult>
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>
pub fn resolve_instance( &self, moniker: &str, ) -> QueryResponseFut<LifecycleControllerResolveInstanceResult>
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>
pub fn unresolve_instance( &self, moniker: &str, ) -> QueryResponseFut<LifecycleControllerUnresolveInstanceResult>
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>
pub fn create_instance( &self, parent_moniker: &str, collection: &CollectionRef, decl: &Child, args: CreateChildArgs, ) -> QueryResponseFut<LifecycleControllerCreateInstanceResult>
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>
pub fn destroy_instance( &self, parent_moniker: &str, child: &ChildRef, ) -> QueryResponseFut<LifecycleControllerDestroyInstanceResult>
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>>
fn start_instance( &self, moniker: &str, binder: ServerEnd<BinderMarker>, ) -> Self::StartInstanceResponseFut
type StartInstanceWithArgsResponseFut = QueryResponseFut<Result<(), StartError>>
fn start_instance_with_args( &self, moniker: &str, binder: ServerEnd<BinderMarker>, args: StartChildArgs, ) -> Self::StartInstanceWithArgsResponseFut
type StopInstanceResponseFut = QueryResponseFut<Result<(), StopError>>
fn stop_instance(&self, moniker: &str) -> Self::StopInstanceResponseFut
type ResolveInstanceResponseFut = QueryResponseFut<Result<(), ResolveError>>
fn resolve_instance(&self, moniker: &str) -> Self::ResolveInstanceResponseFut
type UnresolveInstanceResponseFut = QueryResponseFut<Result<(), UnresolveError>>
fn unresolve_instance( &self, moniker: &str, ) -> Self::UnresolveInstanceResponseFut
type CreateInstanceResponseFut = QueryResponseFut<Result<(), CreateError>>
fn create_instance( &self, parent_moniker: &str, collection: &CollectionRef, decl: &Child, args: CreateChildArgs, ) -> Self::CreateInstanceResponseFut
type DestroyInstanceResponseFut = QueryResponseFut<Result<(), DestroyError>>
fn destroy_instance( &self, parent_moniker: &str, child: &ChildRef, ) -> Self::DestroyInstanceResponseFut
source§impl Proxy for LifecycleControllerProxy
impl Proxy for LifecycleControllerProxy
§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)