Struct steamworks::UserStats[][src]

pub struct UserStats<Manager> { /* fields omitted */ }
Expand description

Access to the steam user interface

Implementations

Returns the display type of a leaderboard handle. Returns None if the leaderboard handle is invalid.

Returns the sort method of a leaderboard handle. Returns None if the leaderboard handle is invalid.

Returns the name of a leaderboard handle. Returns an empty string if the leaderboard handle is invalid.

pub fn get_leaderboard_entry_count(&self, leaderboard: &Leaderboard) -> i32

Returns the total number of entries in a leaderboard. Returns 0 if the leaderboard handle is invalid.

Triggers a UserStatsReceived callback.

Send the changed stats and achievements data to the server for permanent storage.

Requires request_current_stats() to have been called and a successful UserStatsReceived callback processed.

Sets / updates the value of a given stat for the current user

This call only changes the value in-memory and is very cheap. To commit the stats you must call store_stats()

The specified stat must exist and match the type set on the Steamworks App Admin website.

Requires request_current_stats() to have been called and a successful UserStatsReceived callback processed.

Sets / updates the value of a given stat for the current user

This call only changes the value in-memory and is very cheap. To commit the stats you must call store_stats()

The specified stat must exist and match the type set on the Steamworks App Admin website.

Requires request_current_stats() to have been called and a successful UserStatsReceived callback processed.

Access achievement API for a given achievement ‘API Name’.

Requires request_current_stats() to have been called and a successful UserStatsReceived callback processed.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.