Enum serenity::model::gateway::GameType[][src]

pub enum GameType {
    Playing,
    Streaming,
    Listening,
}

The type of activity that is being performed when playing a game.

Variants

An indicator that the user is playing a game.

An indicator that the user is streaming to a service.

An indicator that the user is listening to something.

Methods

impl GameType
[src]

Trait Implementations

impl Clone for GameType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for GameType
[src]

impl Debug for GameType
[src]

Formats the value using the given formatter. Read more

impl Eq for GameType
[src]

impl Hash for GameType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for GameType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for GameType
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for GameType
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Serialize for GameType
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for GameType
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Default for GameType
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for GameType

impl Sync for GameType