[][src]Enum wasmdome_protocol::events::ArenaEvent

pub enum ArenaEvent {
    MechConnected {
        actor: String,
        name: String,
        avatar: String,
        team: String,
        time: DateTime<Utc>,
    },
    MechDisconnected {
        actor: String,
        time: DateTime<Utc>,
    },
    MatchStarted {
        match_id: String,
        actors: Vec<String>,
        board_height: u32,
        board_width: u32,
        start_time: DateTime<Utc>,
    },
    MatchCompleted {
        match_id: String,
        cause: EndCause,
        time: DateTime<Utc>,
    },
}

Variants

MechConnected

Fields of MechConnected

actor: Stringname: Stringavatar: Stringteam: Stringtime: DateTime<Utc>
MechDisconnected

Fields of MechDisconnected

actor: Stringtime: DateTime<Utc>
MatchStarted

Fields of MatchStarted

match_id: Stringactors: Vec<String>board_height: u32board_width: u32start_time: DateTime<Utc>
MatchCompleted

Fields of MatchCompleted

match_id: Stringcause: EndCausetime: DateTime<Utc>

Trait Implementations

impl Clone for ArenaEvent[src]

impl Debug for ArenaEvent[src]

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

impl Serialize for ArenaEvent[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.