[−][src]Enum airmash_protocol::ServerPacket
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
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>( | [src] |
fn deserialize( | [src] |
impl Clone for ServerPacket
[src]
impl Clone for ServerPacket
fn clone(&self) -> ServerPacket | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. 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] |
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] |
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] |
impl From<PlayerUpdate> for ServerPacket
[src]
impl From<PlayerUpdate> for ServerPacket
fn from(v: PlayerUpdate) -> Self | [src] |
impl From<PlayerFire> for ServerPacket
[src]
impl From<PlayerFire> for ServerPacket
fn from(v: PlayerFire) -> Self | [src] |
impl From<PlayerRespawn> for ServerPacket
[src]
impl From<PlayerRespawn> for ServerPacket
fn from(v: PlayerRespawn) -> Self | [src] |
impl From<PlayerFlag> for ServerPacket
[src]
impl From<PlayerFlag> for ServerPacket
fn from(v: PlayerFlag) -> Self | [src] |
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] |
impl From<PlayerUpgrade> for ServerPacket
[src]
impl From<PlayerUpgrade> for ServerPacket
fn from(v: PlayerUpgrade) -> Self | [src] |
impl From<PlayerType> for ServerPacket
[src]
impl From<PlayerType> for ServerPacket
fn from(v: PlayerType) -> Self | [src] |
impl From<PlayerPowerup> for ServerPacket
[src]
impl From<PlayerPowerup> for ServerPacket
fn from(v: PlayerPowerup) -> Self | [src] |
impl From<PlayerLevel> for ServerPacket
[src]
impl From<PlayerLevel> for ServerPacket
fn from(v: PlayerLevel) -> Self | [src] |
impl From<PlayerReteam> for ServerPacket
[src]
impl From<PlayerReteam> for ServerPacket
fn from(v: PlayerReteam) -> Self | [src] |
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] |
impl From<GamePlayersAlive> for ServerPacket
[src]
impl From<GamePlayersAlive> for ServerPacket
fn from(v: GamePlayersAlive) -> Self | [src] |
impl From<GameFirewall> for ServerPacket
[src]
impl From<GameFirewall> for ServerPacket
fn from(v: GameFirewall) -> Self | [src] |
impl From<EventRepel> for ServerPacket
[src]
impl From<EventRepel> for ServerPacket
fn from(v: EventRepel) -> Self | [src] |
impl From<EventBoost> for ServerPacket
[src]
impl From<EventBoost> for ServerPacket
fn from(v: EventBoost) -> Self | [src] |
impl From<EventBounce> for ServerPacket
[src]
impl From<EventBounce> for ServerPacket
fn from(v: EventBounce) -> Self | [src] |
impl From<EventStealth> for ServerPacket
[src]
impl From<EventStealth> for ServerPacket
fn from(v: EventStealth) -> Self | [src] |
impl From<EventLeaveHorizon> for ServerPacket
[src]
impl From<EventLeaveHorizon> for ServerPacket
fn from(v: EventLeaveHorizon) -> Self | [src] |
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] |
impl From<MobDespawn> for ServerPacket
[src]
impl From<MobDespawn> for ServerPacket
fn from(v: MobDespawn) -> Self | [src] |
impl From<MobDespawnCoords> for ServerPacket
[src]
impl From<MobDespawnCoords> for ServerPacket
fn from(v: MobDespawnCoords) -> Self | [src] |
impl From<ScoreUpdate> for ServerPacket
[src]
impl From<ScoreUpdate> for ServerPacket
fn from(v: ScoreUpdate) -> Self | [src] |
impl From<ScoreBoard> for ServerPacket
[src]
impl From<ScoreBoard> for ServerPacket
fn from(v: ScoreBoard) -> Self | [src] |
impl From<ScoreDetailedFFA> for ServerPacket
[src]
impl From<ScoreDetailedFFA> for ServerPacket
fn from(v: ScoreDetailedFFA) -> Self | [src] |
impl From<ScoreDetailedCTF> for ServerPacket
[src]
impl From<ScoreDetailedCTF> for ServerPacket
fn from(v: ScoreDetailedCTF) -> Self | [src] |
impl From<ScoreDetailedBTR> for ServerPacket
[src]
impl From<ScoreDetailedBTR> for ServerPacket
fn from(v: ScoreDetailedBTR) -> Self | [src] |
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] |
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] |
impl From<ChatVoteMutePassed> for ServerPacket
[src]
impl From<ChatVoteMutePassed> for ServerPacket
fn from(v: ChatVoteMutePassed) -> Self | [src] |
impl From<ServerMessage> for ServerPacket
[src]
impl From<ServerMessage> for ServerPacket
fn from(v: ServerMessage) -> Self | [src] |
impl From<ServerCustom> for ServerPacket
[src]
impl From<ServerCustom> for ServerPacket
fn from(v: ServerCustom) -> Self | [src] |
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] |
impl Debug for ServerPacket
[src]
impl Debug for ServerPacket
impl Serialize for ServerPacket
[src]
impl Serialize for ServerPacket
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where | [src] |
impl<'de> Deserialize<'de> for ServerPacket
[src]
impl<'de> Deserialize<'de> for ServerPacket
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where | [src] |
Auto Trait Implementations
impl Send for ServerPacket
impl Send for ServerPacket
impl Sync for ServerPacket
impl Sync for ServerPacket
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,