Struct steamworks::UserStatsReceived
source · pub struct UserStatsReceived {
pub steam_id: SteamId,
pub game_id: GameId,
pub result: Result<(), SteamError>,
}
Expand description
Callback type after calling
request_current_stats()
.
§Example
let callback_handle = client.register_callback(|val: UserStatsReceived| {
if val.result.is_err() {
// ...
}
});
Fields§
§steam_id: SteamId
§game_id: GameId
§result: Result<(), SteamError>
Trait Implementations§
source§impl Callback for UserStatsReceived
impl Callback for UserStatsReceived
source§impl Clone for UserStatsReceived
impl Clone for UserStatsReceived
source§fn clone(&self) -> UserStatsReceived
fn clone(&self) -> UserStatsReceived
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for UserStatsReceived
impl Send for UserStatsReceived
impl Sync for UserStatsReceived
impl Unpin for UserStatsReceived
impl UnwindSafe for UserStatsReceived
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more