pub enum LifecycleControllerRequest {
StartInstance {
moniker: String,
binder: ServerEnd<BinderMarker>,
responder: LifecycleControllerStartInstanceResponder,
},
StartInstanceWithArgs {
moniker: String,
binder: ServerEnd<BinderMarker>,
args: StartChildArgs,
responder: LifecycleControllerStartInstanceWithArgsResponder,
},
StopInstance {
moniker: String,
responder: LifecycleControllerStopInstanceResponder,
},
ResolveInstance {
moniker: String,
responder: LifecycleControllerResolveInstanceResponder,
},
UnresolveInstance {
moniker: String,
responder: LifecycleControllerUnresolveInstanceResponder,
},
CreateInstance {
parent_moniker: String,
collection: CollectionRef,
decl: Child,
args: CreateChildArgs,
responder: LifecycleControllerCreateInstanceResponder,
},
DestroyInstance {
parent_moniker: String,
child: ChildRef,
responder: LifecycleControllerDestroyInstanceResponder,
},
}
Expand description
Mutates the component instance state in a realm.
Variants§
StartInstance
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.
StartInstanceWithArgs
StopInstance
Stops the instance identified by the given moniker. Relative monikers must start with “./”.
The function returns once the instance has been stopped.
ResolveInstance
Resolves the instance identified by the given moniker. Relative monikers must start with “./”.
The function returns once the instance has been resolved.
UnresolveInstance
Unresolves the component designated by the provided moniker. Relative monikers must start with “./”.
The function returns once the instance has been unresolved.
CreateInstance
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.
Fields
collection: CollectionRef
args: CreateChildArgs
responder: LifecycleControllerCreateInstanceResponder
DestroyInstance
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.
Implementations§
Source§impl LifecycleControllerRequest
impl LifecycleControllerRequest
pub fn into_start_instance( self, ) -> Option<(String, ServerEnd<BinderMarker>, LifecycleControllerStartInstanceResponder)>
pub fn into_start_instance_with_args( self, ) -> Option<(String, ServerEnd<BinderMarker>, StartChildArgs, LifecycleControllerStartInstanceWithArgsResponder)>
pub fn into_stop_instance( self, ) -> Option<(String, LifecycleControllerStopInstanceResponder)>
pub fn into_resolve_instance( self, ) -> Option<(String, LifecycleControllerResolveInstanceResponder)>
pub fn into_unresolve_instance( self, ) -> Option<(String, LifecycleControllerUnresolveInstanceResponder)>
pub fn into_create_instance( self, ) -> Option<(String, CollectionRef, Child, CreateChildArgs, LifecycleControllerCreateInstanceResponder)>
pub fn into_destroy_instance( self, ) -> Option<(String, ChildRef, LifecycleControllerDestroyInstanceResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL