[][src]Enum codegame::ClientMessage

pub enum ClientMessage<G: Game> {
    DebugMessage {
        command: DebugCommand<G>,
    },
    ActionMessage {
        action: G::Action,
    },
    DebugUpdateDone {},
    RequestDebugState {},
}

Message sent from client

Variants

DebugMessage

Ask app to perform new debug command

Fields of DebugMessage

command: DebugCommand<G>

Command to perform

ActionMessage

Reply for ServerMessage::GetAction

Fields of ActionMessage

action: G::Action

Player's action

DebugUpdateDone

Signifies finish of the debug update

Fields of DebugUpdateDone

RequestDebugState

Request debug state from the app

Fields of RequestDebugState

Trait Implementations

impl<'de, G: Game> Deserialize<'de> for ClientMessage<G> where
    G::Action: Deserialize<'de>, 
[src]

impl<G: Game> Serialize for ClientMessage<G> where
    G::Action: Serialize
[src]

impl<G: Game> Trans for ClientMessage<G>[src]

Auto Trait Implementations

impl<G> RefUnwindSafe for ClientMessage<G> where
    <G as Game>::Action: RefUnwindSafe,
    <G as Game>::DebugData: RefUnwindSafe
[src]

impl<G> Send for ClientMessage<G> where
    <G as Game>::Action: Send,
    <G as Game>::DebugData: Send
[src]

impl<G> Sync for ClientMessage<G> where
    <G as Game>::Action: Sync,
    <G as Game>::DebugData: Sync
[src]

impl<G> Unpin for ClientMessage<G> where
    <G as Game>::Action: Unpin,
    <G as Game>::DebugData: Unpin
[src]

impl<G> UnwindSafe for ClientMessage<G> where
    <G as Game>::Action: UnwindSafe,
    <G as Game>::DebugData: UnwindSafe
[src]

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,