/// Launch the session specified in the session manager startup configuration, if any.
///
/// # Errors
/// Returns an error if the session could not be launched.
Launch the session specified in the session manager startup configuration, if any.
Launch the session specified in the session manager startup configuration if any .
pub async fn launch_startup_session(&mut self) -> Result<(), Error> {
        if let Some(session_url) = startup::get_session_url() {
            let mut state = self.state.lock().await;
            state.session_exposed_dir_channel =
                Some(startup::launch_session(&session_url, &state.realm).await?);
            state.session_url = Some(session_url);
        }
        Ok(())
    }
pub async fn launch_startup_session ( & mut self ) -> Result < ( ) , Error > { if let Some ( session_url ) = startup :: get_session_url ( ) { let mut state = self . state . lock ( ) . await ; state . session_exposed_dir_channel = Some ( startup :: launch_session ( & session_url , & state . realm ) . await ? ) ; state . session_url = Some ( session_url ) ; } Ok ( ( ) ) }
Launch the session specified in the session manager startup configuration, if any.
Launch the session specified in the session manager startup configuration if any .
&mut self
errors
Returns an error if the session could not be launched.
Returns an error if the session could not be launched .