pub fn save( session_id: &str, state: &SessionState, ) -> Result<(), Box<dyn Error>>
Persist a session’s state, creating the state dir if needed.