[][src]Enum discord_game_sdk::ActivityKind

pub enum ActivityKind {
    Listening,
    Playing,
    Streaming,
    Watching,
    Undefined(EDiscordActivityType),
}

Activity Type

Enum in official docs

Variants

Listening

Listening to music (only Spotify as of Jan 2020)

Playing

Playing a game

Streaming

Live streaming (only Twitch as of Jan 2020)

Watching

Watching a live stream

Safety net for missing definitions

Trait Implementations

impl Clone for ActivityKind[src]

impl Copy for ActivityKind[src]

impl Debug for ActivityKind[src]

impl Eq for ActivityKind[src]

impl From<u32> for ActivityKind[src]

impl Hash for ActivityKind[src]

impl Into<u32> for ActivityKind[src]

impl PartialEq<ActivityKind> for ActivityKind[src]

impl StructuralEq for ActivityKind[src]

impl StructuralPartialEq for ActivityKind[src]

Auto Trait Implementations

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.