Enum sirpent::net::Msg [] [src]

pub enum Msg {
    Version {
        sirpent: String,
        protocol: String,
    },
    Register {
        desired_name: String,
        kind: ClientKind,
    },
    Welcome {
        name: String,
        grid: GridEnum,
        timeout_millis: Option<Milliseconds>,
    },
    Game {
        game: Box<GameState>,
    },
    Round {
        round: Box<RoundState>,
        game_uuid: Uuid,
    },
    Move {
        direction: Direction,
    },
    Outcome {
        winners: HashSet<String>,
        conclusion: Box<RoundState>,
        game_uuid: Uuid,
    },
}

Variants

Fields of Version

Fields of Register

Fields of Welcome

Fields of Game

Fields of Round

Fields of Move

Fields of Outcome

Methods

impl Msg
[src]

Trait Implementations

impl PartialEq for Msg
[src]

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

This method tests for !=.

impl Clone for Msg
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Msg
[src]

Formats the value using the given formatter.