Enum airmash_protocol::server::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. It can be serialized
and deserialized from byte buffers
using from_bytes
and to_bytes
.
Some packets do not contain any data and thus do not have any data within their enum variants.
Variants
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)
Methods
impl ServerPacket
[src]
pub fn variant_id(&self) -> u8
[src]
Gets the id of the packet associated with the current packet type.
Trait Implementations
impl Clone for ServerPacket
[src]
fn clone(&self) -> ServerPacket
[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