Enum airmash_protocol::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).

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.

The From trait has been implemented for all the structs that correspond to the variants of this enum. This means that instead of directly constructing an instance of ClientPacket, into() can be called instead.

Variants

Trait Implementations

impl<T> ProtocolSerializationExt<ClientPacket> for T where
    T: Protocol + Sync + Send
[src]

impl Clone for ClientPacket
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ClientPacket
[src]

Formats the value using the given formatter. Read more

impl From<Login> for ClientPacket
[src]

Performs the conversion.

impl From<Backup> for ClientPacket
[src]

Performs the conversion.

impl From<Horizon> for ClientPacket
[src]

Performs the conversion.

impl From<Pong> for ClientPacket
[src]

Performs the conversion.

impl From<Key> for ClientPacket
[src]

Performs the conversion.

impl From<Command> for ClientPacket
[src]

Performs the conversion.

impl From<Chat> for ClientPacket
[src]

Performs the conversion.

impl From<TeamChat> for ClientPacket
[src]

Performs the conversion.

impl From<Whisper> for ClientPacket
[src]

Performs the conversion.

impl From<Say> for ClientPacket
[src]

Performs the conversion.

impl From<VoteMute> for ClientPacket
[src]

Performs the conversion.

impl From<LocalPing> for ClientPacket
[src]

Performs the conversion.

impl From<Ack> for ClientPacket
[src]

Performs the conversion.

impl From<ScoreDetailed> for ClientPacket
[src]

Performs the conversion.

Auto Trait Implementations