Struct steamworks::GameId[][src]

pub struct GameId(_);

A game id

Combines AppId and other information

Implementations

impl GameId[src]

pub fn from_raw(id: u64) -> GameId[src]

Creates a GameId from a raw 64 bit value.

May be useful for deserializing game ids from a network or save format.

pub fn raw(&self) -> u64[src]

Returns the raw 64 bit value of the game id

May be useful for serializing game ids over a network or to a save format.

pub fn app_id(&self) -> AppId[src]

Returns the app id of this game

Trait Implementations

impl Clone for GameId[src]

impl Copy for GameId[src]

impl Debug for GameId[src]

impl Eq for GameId[src]

impl Ord for GameId[src]

impl PartialEq<GameId> for GameId[src]

impl PartialOrd<GameId> for GameId[src]

impl StructuralEq for GameId[src]

impl StructuralPartialEq for GameId[src]

Auto Trait Implementations

impl RefUnwindSafe for GameId

impl Send for GameId

impl Sync for GameId

impl Unpin for GameId

impl UnwindSafe for GameId

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.