Enum airmash_protocol::ServerPacket
source · [−]#[non_exhaustive]
pub enum ServerPacket {
Show 48 variants
Login(Login),
Login2(Login2),
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),
MobUpdate2(MobUpdate2),
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),
}
Expand description
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.
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 ServerPacket
, into()
can be called
instead.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Login(Login)
Login2(Login2)
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)
MobUpdate2(MobUpdate2)
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
sourceimpl Clone for ServerPacket
impl Clone for ServerPacket
sourcefn clone(&self) -> ServerPacket
fn clone(&self) -> ServerPacket
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ServerPacket
impl Debug for ServerPacket
sourceimpl<'de> DeserializeV5<'de> for ServerPacket
impl<'de> DeserializeV5<'de> for ServerPacket
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
sourceimpl From<Ack> for ServerPacket
impl From<Ack> for ServerPacket
sourceimpl From<Backup> for ServerPacket
impl From<Backup> for ServerPacket
sourceimpl From<ChatPublic> for ServerPacket
impl From<ChatPublic> for ServerPacket
sourcefn from(v: ChatPublic) -> Self
fn from(v: ChatPublic) -> Self
Converts to this type from the input type.
sourceimpl From<ChatSay> for ServerPacket
impl From<ChatSay> for ServerPacket
sourceimpl From<ChatTeam> for ServerPacket
impl From<ChatTeam> for ServerPacket
sourceimpl From<ChatVoteMutePassed> for ServerPacket
impl From<ChatVoteMutePassed> for ServerPacket
sourcefn from(v: ChatVoteMutePassed) -> Self
fn from(v: ChatVoteMutePassed) -> Self
Converts to this type from the input type.
sourceimpl From<ChatVoteMuted> for ServerPacket
impl From<ChatVoteMuted> for ServerPacket
sourcefn from(_: ChatVoteMuted) -> Self
fn from(_: ChatVoteMuted) -> Self
Converts to this type from the input type.
sourceimpl From<ChatWhisper> for ServerPacket
impl From<ChatWhisper> for ServerPacket
sourcefn from(v: ChatWhisper) -> Self
fn from(v: ChatWhisper) -> Self
Converts to this type from the input type.
sourceimpl From<CommandReply> for ServerPacket
impl From<CommandReply> for ServerPacket
sourcefn from(v: CommandReply) -> Self
fn from(v: CommandReply) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for ServerPacket
impl From<Error> for ServerPacket
sourceimpl From<EventBoost> for ServerPacket
impl From<EventBoost> for ServerPacket
sourcefn from(v: EventBoost) -> Self
fn from(v: EventBoost) -> Self
Converts to this type from the input type.
sourceimpl From<EventBounce> for ServerPacket
impl From<EventBounce> for ServerPacket
sourcefn from(v: EventBounce) -> Self
fn from(v: EventBounce) -> Self
Converts to this type from the input type.
sourceimpl From<EventLeaveHorizon> for ServerPacket
impl From<EventLeaveHorizon> for ServerPacket
sourcefn from(v: EventLeaveHorizon) -> Self
fn from(v: EventLeaveHorizon) -> Self
Converts to this type from the input type.
sourceimpl From<EventRepel> for ServerPacket
impl From<EventRepel> for ServerPacket
sourcefn from(v: EventRepel) -> Self
fn from(v: EventRepel) -> Self
Converts to this type from the input type.
sourceimpl From<EventStealth> for ServerPacket
impl From<EventStealth> for ServerPacket
sourcefn from(v: EventStealth) -> Self
fn from(v: EventStealth) -> Self
Converts to this type from the input type.
sourceimpl From<GameFirewall> for ServerPacket
impl From<GameFirewall> for ServerPacket
sourcefn from(v: GameFirewall) -> Self
fn from(v: GameFirewall) -> Self
Converts to this type from the input type.
sourceimpl From<GameFlag> for ServerPacket
impl From<GameFlag> for ServerPacket
sourceimpl From<GamePlayersAlive> for ServerPacket
impl From<GamePlayersAlive> for ServerPacket
sourcefn from(v: GamePlayersAlive) -> Self
fn from(v: GamePlayersAlive) -> Self
Converts to this type from the input type.
sourceimpl From<GameSpectate> for ServerPacket
impl From<GameSpectate> for ServerPacket
sourcefn from(v: GameSpectate) -> Self
fn from(v: GameSpectate) -> Self
Converts to this type from the input type.
sourceimpl From<Login> for ServerPacket
impl From<Login> for ServerPacket
sourceimpl From<Login2> for ServerPacket
impl From<Login2> for ServerPacket
sourceimpl From<MobDespawn> for ServerPacket
impl From<MobDespawn> for ServerPacket
sourcefn from(v: MobDespawn) -> Self
fn from(v: MobDespawn) -> Self
Converts to this type from the input type.
sourceimpl From<MobDespawnCoords> for ServerPacket
impl From<MobDespawnCoords> for ServerPacket
sourcefn from(v: MobDespawnCoords) -> Self
fn from(v: MobDespawnCoords) -> Self
Converts to this type from the input type.
sourceimpl From<MobUpdate> for ServerPacket
impl From<MobUpdate> for ServerPacket
sourceimpl From<MobUpdate2> for ServerPacket
impl From<MobUpdate2> for ServerPacket
sourcefn from(v: MobUpdate2) -> Self
fn from(v: MobUpdate2) -> Self
Converts to this type from the input type.
sourceimpl From<MobUpdateStationary> for ServerPacket
impl From<MobUpdateStationary> for ServerPacket
sourcefn from(v: MobUpdateStationary) -> Self
fn from(v: MobUpdateStationary) -> Self
Converts to this type from the input type.
sourceimpl From<Ping> for ServerPacket
impl From<Ping> for ServerPacket
sourceimpl From<PingResult> for ServerPacket
impl From<PingResult> for ServerPacket
sourcefn from(v: PingResult) -> Self
fn from(v: PingResult) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerFire> for ServerPacket
impl From<PlayerFire> for ServerPacket
sourcefn from(v: PlayerFire) -> Self
fn from(v: PlayerFire) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerFlag> for ServerPacket
impl From<PlayerFlag> for ServerPacket
sourcefn from(v: PlayerFlag) -> Self
fn from(v: PlayerFlag) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerHit> for ServerPacket
impl From<PlayerHit> for ServerPacket
sourceimpl From<PlayerKill> for ServerPacket
impl From<PlayerKill> for ServerPacket
sourcefn from(v: PlayerKill) -> Self
fn from(v: PlayerKill) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerLeave> for ServerPacket
impl From<PlayerLeave> for ServerPacket
sourcefn from(v: PlayerLeave) -> Self
fn from(v: PlayerLeave) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerLevel> for ServerPacket
impl From<PlayerLevel> for ServerPacket
sourcefn from(v: PlayerLevel) -> Self
fn from(v: PlayerLevel) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerNew> for ServerPacket
impl From<PlayerNew> for ServerPacket
sourceimpl From<PlayerPowerup> for ServerPacket
impl From<PlayerPowerup> for ServerPacket
sourcefn from(v: PlayerPowerup) -> Self
fn from(v: PlayerPowerup) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerRespawn> for ServerPacket
impl From<PlayerRespawn> for ServerPacket
sourcefn from(v: PlayerRespawn) -> Self
fn from(v: PlayerRespawn) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerReteam> for ServerPacket
impl From<PlayerReteam> for ServerPacket
sourcefn from(v: PlayerReteam) -> Self
fn from(v: PlayerReteam) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerType> for ServerPacket
impl From<PlayerType> for ServerPacket
sourcefn from(v: PlayerType) -> Self
fn from(v: PlayerType) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerUpdate> for ServerPacket
impl From<PlayerUpdate> for ServerPacket
sourcefn from(v: PlayerUpdate) -> Self
fn from(v: PlayerUpdate) -> Self
Converts to this type from the input type.
sourceimpl From<PlayerUpgrade> for ServerPacket
impl From<PlayerUpgrade> for ServerPacket
sourcefn from(v: PlayerUpgrade) -> Self
fn from(v: PlayerUpgrade) -> Self
Converts to this type from the input type.
sourceimpl From<ScoreBoard> for ServerPacket
impl From<ScoreBoard> for ServerPacket
sourcefn from(v: ScoreBoard) -> Self
fn from(v: ScoreBoard) -> Self
Converts to this type from the input type.
sourceimpl From<ScoreDetailedBTR> for ServerPacket
impl From<ScoreDetailedBTR> for ServerPacket
sourcefn from(v: ScoreDetailedBTR) -> Self
fn from(v: ScoreDetailedBTR) -> Self
Converts to this type from the input type.
sourceimpl From<ScoreDetailedCTF> for ServerPacket
impl From<ScoreDetailedCTF> for ServerPacket
sourcefn from(v: ScoreDetailedCTF) -> Self
fn from(v: ScoreDetailedCTF) -> Self
Converts to this type from the input type.
sourceimpl From<ScoreDetailedFFA> for ServerPacket
impl From<ScoreDetailedFFA> for ServerPacket
sourcefn from(v: ScoreDetailedFFA) -> Self
fn from(v: ScoreDetailedFFA) -> Self
Converts to this type from the input type.
sourceimpl From<ScoreUpdate> for ServerPacket
impl From<ScoreUpdate> for ServerPacket
sourcefn from(v: ScoreUpdate) -> Self
fn from(v: ScoreUpdate) -> Self
Converts to this type from the input type.
sourceimpl From<ServerCustom> for ServerPacket
impl From<ServerCustom> for ServerPacket
sourcefn from(v: ServerCustom) -> Self
fn from(v: ServerCustom) -> Self
Converts to this type from the input type.
sourceimpl From<ServerMessage> for ServerPacket
impl From<ServerMessage> for ServerPacket
sourcefn from(v: ServerMessage) -> Self
fn from(v: ServerMessage) -> Self
Converts to this type from the input type.
sourceimpl SerializeV5 for ServerPacket
impl SerializeV5 for ServerPacket
fn serialize(&self, ser: &mut AirmashSerializerV5<'_>) -> Result
Auto Trait Implementations
impl RefUnwindSafe for ServerPacket
impl Send for ServerPacket
impl Sync for ServerPacket
impl Unpin for ServerPacket
impl UnwindSafe for ServerPacket
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more