Enum airmash_protocol::ServerPacket[][src]

pub enum ServerPacket {
    Login(Login),
    Backup,
    Ping(Ping),
    PingResult(PingResult),
    Ack,
    Error(Error),
    CommandReply(CommandReply),
    PlayerNew(PlayerNew),
    PlayerLeave(PlayerLeave),
    PlayerUpdate(PlayerUpdate),
    PlayerFire(PlayerFire),
    PlayerRespawn(PlayerRespawn),
    PlayerFlag(PlayerFlag),
    PlayerHit(PlayerHit),
    PlayerKill(PlayerKill),
    PlayerUpgrade(PlayerUpgrade),
    PlayerType(PlayerType),
    PlayerPowerup(PlayerPowerup),
    PlayerLevel(PlayerLevel),
    PlayerReteam(PlayerReteam),
    GameFlag(GameFlag),
    GameSpectate(GameSpectate),
    GamePlayersAlive(GamePlayersAlive),
    GameFirewall(GameFirewall),
    EventRepel(EventRepel),
    EventBoost(EventBoost),
    EventBounce(EventBounce),
    EventStealth(EventStealth),
    EventLeaveHorizon(EventLeaveHorizon),
    MobUpdate(MobUpdate),
    MobUpdateStationary(MobUpdateStationary),
    MobDespawn(MobDespawn),
    MobDespawnCoords(MobDespawnCoords),
    ScoreUpdate(ScoreUpdate),
    ScoreBoard(ScoreBoard),
    ScoreDetailedFFA(ScoreDetailedFFA),
    ScoreDetailedCTF(ScoreDetailedCTF),
    ScoreDetailedBTR(ScoreDetailedBTR),
    ChatTeam(ChatTeam),
    ChatPublic(ChatPublic),
    ChatSay(ChatSay),
    ChatWhisper(ChatWhisper),
    ChatVoteMutePassed(ChatVoteMutePassed),
    ChatVoteMuted,
    ServerMessage(ServerMessage),
    ServerCustom(ServerCustom),
}

All possible server packets.

This is an enum of all possible packet message types.

Some packets do not contain any data and thus do not have any data within their enum variants.

Variants

Trait Implementations

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

impl Clone for ServerPacket
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ServerPacket
[src]

Formats the value using the given formatter. Read more

impl From<Login> for ServerPacket
[src]

Performs the conversion.

impl From<Ping> for ServerPacket
[src]

Performs the conversion.

impl From<PingResult> for ServerPacket
[src]

Performs the conversion.

impl From<Error> for ServerPacket
[src]

Performs the conversion.

impl From<CommandReply> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerNew> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerLeave> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerUpdate> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerFire> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerRespawn> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerFlag> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerHit> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerKill> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerUpgrade> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerType> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerPowerup> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerLevel> for ServerPacket
[src]

Performs the conversion.

impl From<PlayerReteam> for ServerPacket
[src]

Performs the conversion.

impl From<GameFlag> for ServerPacket
[src]

Performs the conversion.

impl From<GameSpectate> for ServerPacket
[src]

Performs the conversion.

impl From<GamePlayersAlive> for ServerPacket
[src]

Performs the conversion.

impl From<GameFirewall> for ServerPacket
[src]

Performs the conversion.

impl From<EventRepel> for ServerPacket
[src]

Performs the conversion.

impl From<EventBoost> for ServerPacket
[src]

Performs the conversion.

impl From<EventBounce> for ServerPacket
[src]

Performs the conversion.

impl From<EventStealth> for ServerPacket
[src]

Performs the conversion.

impl From<EventLeaveHorizon> for ServerPacket
[src]

Performs the conversion.

impl From<MobUpdate> for ServerPacket
[src]

Performs the conversion.

impl From<MobUpdateStationary> for ServerPacket
[src]

Performs the conversion.

impl From<MobDespawn> for ServerPacket
[src]

Performs the conversion.

impl From<MobDespawnCoords> for ServerPacket
[src]

Performs the conversion.

impl From<ScoreUpdate> for ServerPacket
[src]

Performs the conversion.

impl From<ScoreBoard> for ServerPacket
[src]

Performs the conversion.

impl From<ScoreDetailedFFA> for ServerPacket
[src]

Performs the conversion.

impl From<ScoreDetailedCTF> for ServerPacket
[src]

Performs the conversion.

impl From<ScoreDetailedBTR> for ServerPacket
[src]

Performs the conversion.

impl From<ChatTeam> for ServerPacket
[src]

Performs the conversion.

impl From<ChatPublic> for ServerPacket
[src]

Performs the conversion.

impl From<ChatSay> for ServerPacket
[src]

Performs the conversion.

impl From<ChatWhisper> for ServerPacket
[src]

Performs the conversion.

impl From<ChatVoteMutePassed> for ServerPacket
[src]

Performs the conversion.

impl From<ServerMessage> for ServerPacket
[src]

Performs the conversion.

impl From<ServerCustom> for ServerPacket
[src]

Performs the conversion.

impl From<Backup> for ServerPacket
[src]

Performs the conversion.

impl From<Ack> for ServerPacket
[src]

Performs the conversion.

impl From<ChatVoteMuted> for ServerPacket
[src]

Performs the conversion.

Auto Trait Implementations