template <>
class WireServer
Defined at line 2249 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_sys2::LifecycleController>|
and |::fidl::ServerEnd
<
::fuchsia_sys2::LifecycleController>|).
Public Methods
void StartInstance (::fuchsia_sys2::wire::LifecycleControllerStartInstanceRequest * request, StartInstanceCompleter::Sync & completer)
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.
void StartInstanceWithArgs (::fuchsia_sys2::wire::LifecycleControllerStartInstanceWithArgsRequest * request, StartInstanceWithArgsCompleter::Sync & completer)
void StopInstance (::fuchsia_sys2::wire::LifecycleControllerStopInstanceRequest * request, StopInstanceCompleter::Sync & completer)
Stops the instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the instance has been stopped.
void ResolveInstance (::fuchsia_sys2::wire::LifecycleControllerResolveInstanceRequest * request, ResolveInstanceCompleter::Sync & completer)
Resolves the instance identified by the given moniker. Relative
monikers must start with "./".
The function returns once the instance has been resolved.
void UnresolveInstance (::fuchsia_sys2::wire::LifecycleControllerUnresolveInstanceRequest * request, UnresolveInstanceCompleter::Sync & completer)
Unresolves the component designated by the provided moniker. Relative
monikers must start with "./".
The function returns once the instance has been unresolved.
void CreateInstance (::fuchsia_sys2::wire::LifecycleControllerCreateInstanceRequest * request, CreateInstanceCompleter::Sync & completer)
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.
void DestroyInstance (::fuchsia_sys2::wire::LifecycleControllerDestroyInstanceRequest * request, DestroyInstanceCompleter::Sync & completer)
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.
void WireServer ()
Defined at line 2252 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 2253 of file fidling/gen/sdk/fidl/fuchsia.sys2/fuchsia.sys2/cpp/fidl/fuchsia.sys2/cpp/wire_messaging.h