pub enum DdnetGameMsg<'a> {
Show 38 variants
SvMotd(SvMotd<'a>),
SvBroadcast(SvBroadcast<'a>),
SvChat(SvChat<'a>),
SvKillMsg(SvKillMsg),
SvSoundGlobal(SvSoundGlobal),
SvTuneParams(SvTuneParams),
Unused(Unused),
SvReadyToEnter(SvReadyToEnter),
SvWeaponPickup(SvWeaponPickup),
SvEmoticon(SvEmoticon),
SvVoteClearOptions(SvVoteClearOptions),
SvVoteOptionListAdd(SvVoteOptionListAdd<'a>),
SvVoteOptionAdd(SvVoteOptionAdd<'a>),
SvVoteOptionRemove(SvVoteOptionRemove<'a>),
SvVoteSet(SvVoteSet<'a>),
SvVoteStatus(SvVoteStatus),
ClSay(ClSay<'a>),
ClSetTeam(ClSetTeam),
ClSetSpectatorMode(ClSetSpectatorMode),
ClStartInfo(ClStartInfo<'a>),
ClChangeInfo(ClChangeInfo<'a>),
ClKill(ClKill),
ClEmoticon(ClEmoticon),
ClVote(ClVote),
ClCallVote(ClCallVote<'a>),
ClIsDdnetLegacy(ClIsDdnetLegacy),
SvDdraceTimeLegacy(SvDdraceTimeLegacy),
SvRecordLegacy(SvRecordLegacy),
Unused2(Unused2),
SvTeamsStateLegacy(SvTeamsStateLegacy),
ClShowOthersLegacy(ClShowOthersLegacy),
SvMyOwnMessage(SvMyOwnMessage),
ClShowDistance(ClShowDistance),
ClShowOthers(ClShowOthers),
SvTeamsState(SvTeamsState),
SvDdraceTime(SvDdraceTime),
SvRecord(SvRecord),
SvKillMsgTeam(SvKillMsgTeam),
}
Variants§
SvMotd(SvMotd<'a>)
SvBroadcast(SvBroadcast<'a>)
SvChat(SvChat<'a>)
SvKillMsg(SvKillMsg)
SvSoundGlobal(SvSoundGlobal)
SvTuneParams(SvTuneParams)
Unused(Unused)
SvReadyToEnter(SvReadyToEnter)
SvWeaponPickup(SvWeaponPickup)
SvEmoticon(SvEmoticon)
SvVoteClearOptions(SvVoteClearOptions)
SvVoteOptionListAdd(SvVoteOptionListAdd<'a>)
SvVoteOptionAdd(SvVoteOptionAdd<'a>)
SvVoteOptionRemove(SvVoteOptionRemove<'a>)
SvVoteSet(SvVoteSet<'a>)
SvVoteStatus(SvVoteStatus)
ClSay(ClSay<'a>)
ClSetTeam(ClSetTeam)
ClSetSpectatorMode(ClSetSpectatorMode)
ClStartInfo(ClStartInfo<'a>)
ClChangeInfo(ClChangeInfo<'a>)
ClKill(ClKill)
ClEmoticon(ClEmoticon)
ClVote(ClVote)
ClCallVote(ClCallVote<'a>)
ClIsDdnetLegacy(ClIsDdnetLegacy)
SvDdraceTimeLegacy(SvDdraceTimeLegacy)
SvRecordLegacy(SvRecordLegacy)
Unused2(Unused2)
SvTeamsStateLegacy(SvTeamsStateLegacy)
ClShowOthersLegacy(ClShowOthersLegacy)
SvMyOwnMessage(SvMyOwnMessage)
ClShowDistance(ClShowDistance)
ClShowOthers(ClShowOthers)
SvTeamsState(SvTeamsState)
SvDdraceTime(SvDdraceTime)
SvRecord(SvRecord)
SvKillMsgTeam(SvKillMsgTeam)
Implementations§
Trait Implementations§
Source§impl<'a> From<ClCallVote<'a>> for Game<'a>
impl<'a> From<ClCallVote<'a>> for Game<'a>
Source§fn from(i: ClCallVote<'a>) -> Game<'a>
fn from(i: ClCallVote<'a>) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<ClChangeInfo<'a>> for Game<'a>
impl<'a> From<ClChangeInfo<'a>> for Game<'a>
Source§fn from(i: ClChangeInfo<'a>) -> Game<'a>
fn from(i: ClChangeInfo<'a>) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<ClEmoticon> for Game<'a>
impl<'a> From<ClEmoticon> for Game<'a>
Source§fn from(i: ClEmoticon) -> Game<'a>
fn from(i: ClEmoticon) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<ClIsDdnetLegacy> for Game<'a>
impl<'a> From<ClIsDdnetLegacy> for Game<'a>
Source§fn from(i: ClIsDdnetLegacy) -> Game<'a>
fn from(i: ClIsDdnetLegacy) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<ClSetSpectatorMode> for Game<'a>
impl<'a> From<ClSetSpectatorMode> for Game<'a>
Source§fn from(i: ClSetSpectatorMode) -> Game<'a>
fn from(i: ClSetSpectatorMode) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<ClShowDistance> for Game<'a>
impl<'a> From<ClShowDistance> for Game<'a>
Source§fn from(i: ClShowDistance) -> Game<'a>
fn from(i: ClShowDistance) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<ClShowOthers> for Game<'a>
impl<'a> From<ClShowOthers> for Game<'a>
Source§fn from(i: ClShowOthers) -> Game<'a>
fn from(i: ClShowOthers) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<ClShowOthersLegacy> for Game<'a>
impl<'a> From<ClShowOthersLegacy> for Game<'a>
Source§fn from(i: ClShowOthersLegacy) -> Game<'a>
fn from(i: ClShowOthersLegacy) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<ClStartInfo<'a>> for Game<'a>
impl<'a> From<ClStartInfo<'a>> for Game<'a>
Source§fn from(i: ClStartInfo<'a>) -> Game<'a>
fn from(i: ClStartInfo<'a>) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvBroadcast<'a>> for Game<'a>
impl<'a> From<SvBroadcast<'a>> for Game<'a>
Source§fn from(i: SvBroadcast<'a>) -> Game<'a>
fn from(i: SvBroadcast<'a>) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvDdraceTime> for Game<'a>
impl<'a> From<SvDdraceTime> for Game<'a>
Source§fn from(i: SvDdraceTime) -> Game<'a>
fn from(i: SvDdraceTime) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvDdraceTimeLegacy> for Game<'a>
impl<'a> From<SvDdraceTimeLegacy> for Game<'a>
Source§fn from(i: SvDdraceTimeLegacy) -> Game<'a>
fn from(i: SvDdraceTimeLegacy) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvEmoticon> for Game<'a>
impl<'a> From<SvEmoticon> for Game<'a>
Source§fn from(i: SvEmoticon) -> Game<'a>
fn from(i: SvEmoticon) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvKillMsgTeam> for Game<'a>
impl<'a> From<SvKillMsgTeam> for Game<'a>
Source§fn from(i: SvKillMsgTeam) -> Game<'a>
fn from(i: SvKillMsgTeam) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvMyOwnMessage> for Game<'a>
impl<'a> From<SvMyOwnMessage> for Game<'a>
Source§fn from(i: SvMyOwnMessage) -> Game<'a>
fn from(i: SvMyOwnMessage) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvReadyToEnter> for Game<'a>
impl<'a> From<SvReadyToEnter> for Game<'a>
Source§fn from(i: SvReadyToEnter) -> Game<'a>
fn from(i: SvReadyToEnter) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvRecordLegacy> for Game<'a>
impl<'a> From<SvRecordLegacy> for Game<'a>
Source§fn from(i: SvRecordLegacy) -> Game<'a>
fn from(i: SvRecordLegacy) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvSoundGlobal> for Game<'a>
impl<'a> From<SvSoundGlobal> for Game<'a>
Source§fn from(i: SvSoundGlobal) -> Game<'a>
fn from(i: SvSoundGlobal) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvTeamsState> for Game<'a>
impl<'a> From<SvTeamsState> for Game<'a>
Source§fn from(i: SvTeamsState) -> Game<'a>
fn from(i: SvTeamsState) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvTeamsStateLegacy> for Game<'a>
impl<'a> From<SvTeamsStateLegacy> for Game<'a>
Source§fn from(i: SvTeamsStateLegacy) -> Game<'a>
fn from(i: SvTeamsStateLegacy) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvTuneParams> for Game<'a>
impl<'a> From<SvTuneParams> for Game<'a>
Source§fn from(i: SvTuneParams) -> Game<'a>
fn from(i: SvTuneParams) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvVoteClearOptions> for Game<'a>
impl<'a> From<SvVoteClearOptions> for Game<'a>
Source§fn from(i: SvVoteClearOptions) -> Game<'a>
fn from(i: SvVoteClearOptions) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvVoteOptionAdd<'a>> for Game<'a>
impl<'a> From<SvVoteOptionAdd<'a>> for Game<'a>
Source§fn from(i: SvVoteOptionAdd<'a>) -> Game<'a>
fn from(i: SvVoteOptionAdd<'a>) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvVoteOptionListAdd<'a>> for Game<'a>
impl<'a> From<SvVoteOptionListAdd<'a>> for Game<'a>
Source§fn from(i: SvVoteOptionListAdd<'a>) -> Game<'a>
fn from(i: SvVoteOptionListAdd<'a>) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvVoteOptionRemove<'a>> for Game<'a>
impl<'a> From<SvVoteOptionRemove<'a>> for Game<'a>
Source§fn from(i: SvVoteOptionRemove<'a>) -> Game<'a>
fn from(i: SvVoteOptionRemove<'a>) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvVoteStatus> for Game<'a>
impl<'a> From<SvVoteStatus> for Game<'a>
Source§fn from(i: SvVoteStatus) -> Game<'a>
fn from(i: SvVoteStatus) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> From<SvWeaponPickup> for Game<'a>
impl<'a> From<SvWeaponPickup> for Game<'a>
Source§fn from(i: SvWeaponPickup) -> Game<'a>
fn from(i: SvWeaponPickup) -> Game<'a>
Converts to this type from the input type.
Source§impl<'a> Message<'a> for Game<'a>
impl<'a> Message<'a> for Game<'a>
fn decode_msg<W>( warn: &mut W, id: SystemOrGame<MessageId, MessageId>, p: &mut Unpacker<'a>, ) -> Result<Game<'a>, Error>
fn msg_id(&self) -> SystemOrGame<MessageId, MessageId>
fn encode_msg<'d, 's>( &self, p: Packer<'d, 's>, ) -> Result<&'d [u8], CapacityError>
impl<'a> Copy for Game<'a>
Auto Trait Implementations§
impl<'a> Freeze for Game<'a>
impl<'a> RefUnwindSafe for Game<'a>
impl<'a> Send for Game<'a>
impl<'a> Sync for Game<'a>
impl<'a> Unpin for Game<'a>
impl<'a> UnwindSafe for Game<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<'a, T> MessageExt<'a> for Twhere
T: Message<'a>,
impl<'a, T> MessageExt<'a> for Twhere
T: Message<'a>,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.