[][src]Enum airmash_protocol::ClientPacket

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

Login(Login)Backup(Backup)Horizon(Horizon)AckPong(Pong)Key(Key)Command(Command)ScoreDetailedChat(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 From<Login> for ClientPacket
[src]

impl From<Backup> for ClientPacket
[src]

impl From<Horizon> for ClientPacket
[src]

impl From<Pong> for ClientPacket
[src]

impl From<Key> for ClientPacket
[src]

impl From<Command> for ClientPacket
[src]

impl From<Chat> for ClientPacket
[src]

impl From<TeamChat> for ClientPacket
[src]

impl From<Whisper> for ClientPacket
[src]

impl From<Say> for ClientPacket
[src]

impl From<VoteMute> for ClientPacket
[src]

impl From<LocalPing> for ClientPacket
[src]

impl From<Ack> for ClientPacket
[src]

impl From<ScoreDetailed> for ClientPacket
[src]

impl Clone for ClientPacket
[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 Serialize for ClientPacket
[src]

impl<'de> Deserialize<'de> for ClientPacket
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]