Function session_manager_lib::startup::launch_session
source · pub async fn launch_session(
session_url: &str,
exposed_dir: ServerEnd<DirectoryMarker>,
realm: &RealmProxy
) -> Result<ExecutionControllerProxy, StartupError>
Expand description
Launches the specified session.
Any existing session child will be destroyed prior to launching the new session.
Returns a controller for the session component, or an error.
§Parameters
session_url
: The URL of the session to launch.exposed_dir
: The server end on which to serve the session’s exposed directory.realm
: The realm in which to launch the session.
§Errors
If there was a problem creating or binding to the session component instance.