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.
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<T> ProtocolSerializationExt<ClientPacket> for T where
T: Protocol + Sync + Send,
[src]
impl<T> ProtocolSerializationExt<ClientPacket> for T where
T: Protocol + Sync + Send,
fn serialize<U>(
&self,
packet: U
) -> Result<Box<Iterator<Item = Vec<u8>>>, Self::SerializeError> where
U: Into<ClientPacket>,
[src]
fn serialize<U>(
&self,
packet: U
) -> Result<Box<Iterator<Item = Vec<u8>>>, Self::SerializeError> where
U: Into<ClientPacket>,
fn deserialize(
&self,
data: &[u8]
) -> Result<ClientPacket, Self::DeserializeError>
[src]
fn deserialize(
&self,
data: &[u8]
) -> Result<ClientPacket, Self::DeserializeError>
impl Clone for ClientPacket
[src]
impl Clone for ClientPacket
fn clone(&self) -> ClientPacket
[src]
fn clone(&self) -> ClientPacket
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for ClientPacket
[src]
impl Debug for ClientPacket
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Login> for ClientPacket
[src]
impl From<Login> for ClientPacket
impl From<Backup> for ClientPacket
[src]
impl From<Backup> for ClientPacket
impl From<Horizon> for ClientPacket
[src]
impl From<Horizon> for ClientPacket
impl From<Pong> for ClientPacket
[src]
impl From<Pong> for ClientPacket
impl From<Key> for ClientPacket
[src]
impl From<Key> for ClientPacket
impl From<Command> for ClientPacket
[src]
impl From<Command> for ClientPacket
impl From<Chat> for ClientPacket
[src]
impl From<Chat> for ClientPacket
impl From<TeamChat> for ClientPacket
[src]
impl From<TeamChat> for ClientPacket
impl From<Whisper> for ClientPacket
[src]
impl From<Whisper> for ClientPacket
impl From<Say> for ClientPacket
[src]
impl From<Say> for ClientPacket
impl From<VoteMute> for ClientPacket
[src]
impl From<VoteMute> for ClientPacket
impl From<LocalPing> for ClientPacket
[src]
impl From<LocalPing> for ClientPacket
impl From<Ack> for ClientPacket
[src]
impl From<Ack> for ClientPacket
impl From<ScoreDetailed> for ClientPacket
[src]
impl From<ScoreDetailed> for ClientPacket
fn from(_: ScoreDetailed) -> Self
[src]
fn from(_: ScoreDetailed) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for ClientPacket
impl Send for ClientPacket
impl Sync for ClientPacket
impl Sync for ClientPacket