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
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)
Trait Implementations
impl<T> ProtocolSerializationExt<ServerPacket> for T where
T: Protocol + Sync + Send,
[src]
impl<T> ProtocolSerializationExt<ServerPacket> for T where
T: Protocol + Sync + Send,
fn serialize<U>(
&self,
packet: U
) -> Result<Box<Iterator<Item = Vec<u8>>>, Self::SerializeError> where
U: Into<ServerPacket>,
[src]
fn serialize<U>(
&self,
packet: U
) -> Result<Box<Iterator<Item = Vec<u8>>>, Self::SerializeError> where
U: Into<ServerPacket>,
fn deserialize(
&self,
data: &[u8]
) -> Result<ServerPacket, Self::DeserializeError>
[src]
fn deserialize(
&self,
data: &[u8]
) -> Result<ServerPacket, Self::DeserializeError>
impl Clone for ServerPacket
[src]
impl Clone for ServerPacket
fn clone(&self) -> ServerPacket
[src]
fn clone(&self) -> ServerPacket
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)
Performs copy-assignment from source
. Read more
impl Debug for ServerPacket
[src]
impl Debug for ServerPacket
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 ServerPacket
[src]
impl From<Login> for ServerPacket
impl From<Ping> for ServerPacket
[src]
impl From<Ping> for ServerPacket
impl From<PingResult> for ServerPacket
[src]
impl From<PingResult> for ServerPacket
fn from(v: PingResult) -> Self
[src]
fn from(v: PingResult) -> Self
Performs the conversion.
impl From<Error> for ServerPacket
[src]
impl From<Error> for ServerPacket
impl From<CommandReply> for ServerPacket
[src]
impl From<CommandReply> for ServerPacket
fn from(v: CommandReply) -> Self
[src]
fn from(v: CommandReply) -> Self
Performs the conversion.
impl From<PlayerNew> for ServerPacket
[src]
impl From<PlayerNew> for ServerPacket
impl From<PlayerLeave> for ServerPacket
[src]
impl From<PlayerLeave> for ServerPacket
fn from(v: PlayerLeave) -> Self
[src]
fn from(v: PlayerLeave) -> Self
Performs the conversion.
impl From<PlayerUpdate> for ServerPacket
[src]
impl From<PlayerUpdate> for ServerPacket
fn from(v: PlayerUpdate) -> Self
[src]
fn from(v: PlayerUpdate) -> Self
Performs the conversion.
impl From<PlayerFire> for ServerPacket
[src]
impl From<PlayerFire> for ServerPacket
fn from(v: PlayerFire) -> Self
[src]
fn from(v: PlayerFire) -> Self
Performs the conversion.
impl From<PlayerRespawn> for ServerPacket
[src]
impl From<PlayerRespawn> for ServerPacket
fn from(v: PlayerRespawn) -> Self
[src]
fn from(v: PlayerRespawn) -> Self
Performs the conversion.
impl From<PlayerFlag> for ServerPacket
[src]
impl From<PlayerFlag> for ServerPacket
fn from(v: PlayerFlag) -> Self
[src]
fn from(v: PlayerFlag) -> Self
Performs the conversion.
impl From<PlayerHit> for ServerPacket
[src]
impl From<PlayerHit> for ServerPacket
impl From<PlayerKill> for ServerPacket
[src]
impl From<PlayerKill> for ServerPacket
fn from(v: PlayerKill) -> Self
[src]
fn from(v: PlayerKill) -> Self
Performs the conversion.
impl From<PlayerUpgrade> for ServerPacket
[src]
impl From<PlayerUpgrade> for ServerPacket
fn from(v: PlayerUpgrade) -> Self
[src]
fn from(v: PlayerUpgrade) -> Self
Performs the conversion.
impl From<PlayerType> for ServerPacket
[src]
impl From<PlayerType> for ServerPacket
fn from(v: PlayerType) -> Self
[src]
fn from(v: PlayerType) -> Self
Performs the conversion.
impl From<PlayerPowerup> for ServerPacket
[src]
impl From<PlayerPowerup> for ServerPacket
fn from(v: PlayerPowerup) -> Self
[src]
fn from(v: PlayerPowerup) -> Self
Performs the conversion.
impl From<PlayerLevel> for ServerPacket
[src]
impl From<PlayerLevel> for ServerPacket
fn from(v: PlayerLevel) -> Self
[src]
fn from(v: PlayerLevel) -> Self
Performs the conversion.
impl From<PlayerReteam> for ServerPacket
[src]
impl From<PlayerReteam> for ServerPacket
fn from(v: PlayerReteam) -> Self
[src]
fn from(v: PlayerReteam) -> Self
Performs the conversion.
impl From<GameFlag> for ServerPacket
[src]
impl From<GameFlag> for ServerPacket
impl From<GameSpectate> for ServerPacket
[src]
impl From<GameSpectate> for ServerPacket
fn from(v: GameSpectate) -> Self
[src]
fn from(v: GameSpectate) -> Self
Performs the conversion.
impl From<GamePlayersAlive> for ServerPacket
[src]
impl From<GamePlayersAlive> for ServerPacket
fn from(v: GamePlayersAlive) -> Self
[src]
fn from(v: GamePlayersAlive) -> Self
Performs the conversion.
impl From<GameFirewall> for ServerPacket
[src]
impl From<GameFirewall> for ServerPacket
fn from(v: GameFirewall) -> Self
[src]
fn from(v: GameFirewall) -> Self
Performs the conversion.
impl From<EventRepel> for ServerPacket
[src]
impl From<EventRepel> for ServerPacket
fn from(v: EventRepel) -> Self
[src]
fn from(v: EventRepel) -> Self
Performs the conversion.
impl From<EventBoost> for ServerPacket
[src]
impl From<EventBoost> for ServerPacket
fn from(v: EventBoost) -> Self
[src]
fn from(v: EventBoost) -> Self
Performs the conversion.
impl From<EventBounce> for ServerPacket
[src]
impl From<EventBounce> for ServerPacket
fn from(v: EventBounce) -> Self
[src]
fn from(v: EventBounce) -> Self
Performs the conversion.
impl From<EventStealth> for ServerPacket
[src]
impl From<EventStealth> for ServerPacket
fn from(v: EventStealth) -> Self
[src]
fn from(v: EventStealth) -> Self
Performs the conversion.
impl From<EventLeaveHorizon> for ServerPacket
[src]
impl From<EventLeaveHorizon> for ServerPacket
fn from(v: EventLeaveHorizon) -> Self
[src]
fn from(v: EventLeaveHorizon) -> Self
Performs the conversion.
impl From<MobUpdate> for ServerPacket
[src]
impl From<MobUpdate> for ServerPacket
impl From<MobUpdateStationary> for ServerPacket
[src]
impl From<MobUpdateStationary> for ServerPacket
fn from(v: MobUpdateStationary) -> Self
[src]
fn from(v: MobUpdateStationary) -> Self
Performs the conversion.
impl From<MobDespawn> for ServerPacket
[src]
impl From<MobDespawn> for ServerPacket
fn from(v: MobDespawn) -> Self
[src]
fn from(v: MobDespawn) -> Self
Performs the conversion.
impl From<MobDespawnCoords> for ServerPacket
[src]
impl From<MobDespawnCoords> for ServerPacket
fn from(v: MobDespawnCoords) -> Self
[src]
fn from(v: MobDespawnCoords) -> Self
Performs the conversion.
impl From<ScoreUpdate> for ServerPacket
[src]
impl From<ScoreUpdate> for ServerPacket
fn from(v: ScoreUpdate) -> Self
[src]
fn from(v: ScoreUpdate) -> Self
Performs the conversion.
impl From<ScoreBoard> for ServerPacket
[src]
impl From<ScoreBoard> for ServerPacket
fn from(v: ScoreBoard) -> Self
[src]
fn from(v: ScoreBoard) -> Self
Performs the conversion.
impl From<ScoreDetailedFFA> for ServerPacket
[src]
impl From<ScoreDetailedFFA> for ServerPacket
fn from(v: ScoreDetailedFFA) -> Self
[src]
fn from(v: ScoreDetailedFFA) -> Self
Performs the conversion.
impl From<ScoreDetailedCTF> for ServerPacket
[src]
impl From<ScoreDetailedCTF> for ServerPacket
fn from(v: ScoreDetailedCTF) -> Self
[src]
fn from(v: ScoreDetailedCTF) -> Self
Performs the conversion.
impl From<ScoreDetailedBTR> for ServerPacket
[src]
impl From<ScoreDetailedBTR> for ServerPacket
fn from(v: ScoreDetailedBTR) -> Self
[src]
fn from(v: ScoreDetailedBTR) -> Self
Performs the conversion.
impl From<ChatTeam> for ServerPacket
[src]
impl From<ChatTeam> for ServerPacket
impl From<ChatPublic> for ServerPacket
[src]
impl From<ChatPublic> for ServerPacket
fn from(v: ChatPublic) -> Self
[src]
fn from(v: ChatPublic) -> Self
Performs the conversion.
impl From<ChatSay> for ServerPacket
[src]
impl From<ChatSay> for ServerPacket
impl From<ChatWhisper> for ServerPacket
[src]
impl From<ChatWhisper> for ServerPacket
fn from(v: ChatWhisper) -> Self
[src]
fn from(v: ChatWhisper) -> Self
Performs the conversion.
impl From<ChatVoteMutePassed> for ServerPacket
[src]
impl From<ChatVoteMutePassed> for ServerPacket
fn from(v: ChatVoteMutePassed) -> Self
[src]
fn from(v: ChatVoteMutePassed) -> Self
Performs the conversion.
impl From<ServerMessage> for ServerPacket
[src]
impl From<ServerMessage> for ServerPacket
fn from(v: ServerMessage) -> Self
[src]
fn from(v: ServerMessage) -> Self
Performs the conversion.
impl From<ServerCustom> for ServerPacket
[src]
impl From<ServerCustom> for ServerPacket
fn from(v: ServerCustom) -> Self
[src]
fn from(v: ServerCustom) -> Self
Performs the conversion.
impl From<Backup> for ServerPacket
[src]
impl From<Backup> for ServerPacket
impl From<Ack> for ServerPacket
[src]
impl From<Ack> for ServerPacket
impl From<ChatVoteMuted> for ServerPacket
[src]
impl From<ChatVoteMuted> for ServerPacket
fn from(_: ChatVoteMuted) -> Self
[src]
fn from(_: ChatVoteMuted) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for ServerPacket
impl Send for ServerPacket
impl Sync for ServerPacket
impl Sync for ServerPacket