pub async fn stop_session(realm: &RealmProxy) -> Result<(), StartupError>
Expand description

Stops the current session, if any.

§Parameters

  • realm: The realm in which the session exists.

§Errors

StartupError::NotDestroyed if the session component could not be destroyed.