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

Function state

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

Source from the content-addressed store, hash-verified

12}
13
14fn state() -> &'static Mutex<SteamState> {
15 static STATE: OnceLock<Mutex<SteamState>> = OnceLock::new();
16 STATE.get_or_init(|| Mutex::new(SteamState::default()))
17}
18
19#[cfg(test)]
20pub(crate) fn reset_for_tests() {

Callers 9

reset_for_testsFunction · 0.70
run_callbacksFunction · 0.70
request_stats_storeFunction · 0.70
flush_stats_storeFunction · 0.70
is_enabledFunction · 0.70
is_readyFunction · 0.70
get_app_idFunction · 0.70
with_clientFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected