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

Function with_client

perro_source/api_modules/perro_steamworks/src/app.rs:137–149  ·  view source on GitHub ↗
(
    f: impl FnOnce(&steamworks::Client) -> Result<T, SteamError>,
)

Source from the content-addressed store, hash-verified

135
136#[cfg(test)]
137pub fn is_enabled() -> Result<bool, SteamError> {
138 state()
139 .lock()
140 .map(|state| state.enabled)
141 .map_err(|_| SteamError::NotReady)
142}
143
144#[cfg(test)]
145pub fn is_ready() -> Result<bool, SteamError> {
146 state()
147 .lock()
148 .map(|state| state.client.is_some())
149 .map_err(|_| SteamError::NotReady)
150}
151
152#[cfg(test)]

Callers 15

is_installedFunction · 0.85
is_dlc_installedFunction · 0.85
is_dlc_id_installedFunction · 0.85
is_subscribedFunction · 0.85
is_subscribed_appFunction · 0.85
is_vac_bannedFunction · 0.85
is_cybercafeFunction · 0.85
is_low_violenceFunction · 0.85
get_build_idFunction · 0.85
get_install_dirFunction · 0.85
get_ownerFunction · 0.85

Calls 3

cloneMethod · 0.80
stateFunction · 0.70

Tested by

no test coverage detected