MCPcopy Create free account
hub / github.com/PerroEngine/Perro / run_callbacks

Function run_callbacks

perro_source/api_modules/perro_steamworks/src/app.rs:72–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72pub fn run_callbacks() -> Result<(), SteamError> {
73 if crate::game_server::is_ready_internal() {
74 return crate::game_server::run_callbacks();
75 }
76 let client = {
77 let mut state = state().lock().map_err(|_| SteamError::NotReady)?;
78 ensure_client_from_process_env(&mut state)?;
79 state.client.clone()
80 };
81 if let Some(client) = client {
82 client.process_callbacks(crate::events::enqueue_callback);
83 flush_stats_store(&client)?;
84 }
85 Ok(())
86}

Callers

nothing calls this directly

Calls 4

flush_stats_storeFunction · 0.85
cloneMethod · 0.80
stateFunction · 0.70

Tested by

no test coverage detected