pub fn get_state_with_append_log( client: &mut ThingsCloudClient, cache_dir: PathBuf, ) -> Result<RawState>