Enum airmash_protocol::client::ClientPacket [] [src]

pub enum ClientPacket {
    Login(Login),
    Backup(Backup),
    Horizon(Horizon),
    Ack,
    Pong(Pong),
    Key(Key),
    Command(Command),
    ScoreDetailed,
    Chat(Chat),
    TeamChat(TeamChat),
    Whisper(Whisper),
    Say(Say),
    VoteMute(VoteMute),
    LocalPing(LocalPing),
}

All possible client packets.

This contains all valid packets that the client can send to the server (in the current version of the airmash protocol). It can be serialized and deserialized to/from byte buffers using to_bytes and from_bytes.

Some packets don't contain any data, these packets do not have an associated struct and as such are just empty variants within this enum.

Variants

Trait Implementations

impl Clone for ClientPacket
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ClientPacket
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for ClientPacket

impl Sync for ClientPacket