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
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)
Trait Implementations
impl Clone for ClientPacket
[src]
fn clone(&self) -> ClientPacket
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more