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

Function get_name

perro_source/api_modules/perro_steamworks/src/account.rs:8–10  ·  view source on GitHub ↗
(id: SteamID)

Source from the content-addressed store, hash-verified

6}
7
8pub fn get_name(id: SteamID) -> Result<String, SteamError> {
9 app::with_client(|client| Ok(client.friends().get_friend(id.into()).name()))
10}
11
12pub fn get_self_name() -> Result<String, SteamError> {
13 app::with_client(|client| Ok(client.friends().name()))

Callers

nothing calls this directly

Calls 2

with_clientFunction · 0.85
nameMethod · 0.45

Tested by

no test coverage detected