pub enum ToClientCommand {
Show 58 variants
Hello(Box<HelloSpec>),
AuthAccept(Box<AuthAcceptSpec>),
AcceptSudoMode(Box<AcceptSudoModeSpec>),
DenySudoMode(Box<DenySudoModeSpec>),
AccessDenied(Box<AccessDeniedSpec>),
Blockdata(Box<BlockdataSpec>),
Addnode(Box<AddnodeSpec>),
Removenode(Box<RemovenodeSpec>),
Inventory(Box<InventorySpec>),
TimeOfDay(Box<TimeOfDaySpec>),
CsmRestrictionFlags(Box<CsmRestrictionFlagsSpec>),
PlayerSpeed(Box<PlayerSpeedSpec>),
MediaPush(Box<MediaPushSpec>),
TCChatMessage(Box<TCChatMessageSpec>),
ActiveObjectRemoveAdd(Box<ActiveObjectRemoveAddSpec>),
ActiveObjectMessages(Box<ActiveObjectMessagesSpec>),
Hp(Box<HpSpec>),
MovePlayer(Box<MovePlayerSpec>),
AccessDeniedLegacy(Box<AccessDeniedLegacySpec>),
Fov(Box<FovSpec>),
Deathscreen(Box<DeathscreenSpec>),
Media(Box<MediaSpec>),
Nodedef(Box<NodedefSpec>),
AnnounceMedia(Box<AnnounceMediaSpec>),
Itemdef(Box<ItemdefSpec>),
PlaySound(Box<PlaySoundSpec>),
StopSound(Box<StopSoundSpec>),
Privileges(Box<PrivilegesSpec>),
InventoryFormspec(Box<InventoryFormspecSpec>),
DetachedInventory(Box<DetachedInventorySpec>),
ShowFormspec(Box<ShowFormspecSpec>),
Movement(Box<MovementSpec>),
SpawnParticle(Box<SpawnParticleSpec>),
AddParticlespawner(Box<AddParticlespawnerSpec>),
Hudadd(Box<HudaddSpec>),
Hudrm(Box<HudrmSpec>),
Hudchange(Box<HudchangeSpec>),
HudSetFlags(Box<HudSetFlagsSpec>),
HudSetParam(Box<HudSetParamSpec>),
Breath(Box<BreathSpec>),
SetSky(Box<SetSkySpec>),
OverrideDayNightRatio(Box<OverrideDayNightRatioSpec>),
LocalPlayerAnimations(Box<LocalPlayerAnimationsSpec>),
EyeOffset(Box<EyeOffsetSpec>),
DeleteParticlespawner(Box<DeleteParticlespawnerSpec>),
CloudParams(Box<CloudParamsSpec>),
FadeSound(Box<FadeSoundSpec>),
UpdatePlayerList(Box<UpdatePlayerListSpec>),
TCModchannelMsg(Box<TCModchannelMsgSpec>),
ModchannelSignal(Box<ModchannelSignalSpec>),
NodemetaChanged(Box<NodemetaChangedSpec>),
SetSun(Box<SetSunSpec>),
SetMoon(Box<SetMoonSpec>),
SetStars(Box<SetStarsSpec>),
SrpBytesSB(Box<SrpBytesSBSpec>),
FormspecPrepend(Box<FormspecPrependSpec>),
MinimapModes(Box<MinimapModesSpec>),
SetLighting(Box<SetLightingSpec>),
}
Variants§
Hello(Box<HelloSpec>)
AuthAccept(Box<AuthAcceptSpec>)
AcceptSudoMode(Box<AcceptSudoModeSpec>)
DenySudoMode(Box<DenySudoModeSpec>)
AccessDenied(Box<AccessDeniedSpec>)
Blockdata(Box<BlockdataSpec>)
Addnode(Box<AddnodeSpec>)
Removenode(Box<RemovenodeSpec>)
Inventory(Box<InventorySpec>)
TimeOfDay(Box<TimeOfDaySpec>)
CsmRestrictionFlags(Box<CsmRestrictionFlagsSpec>)
PlayerSpeed(Box<PlayerSpeedSpec>)
MediaPush(Box<MediaPushSpec>)
TCChatMessage(Box<TCChatMessageSpec>)
ActiveObjectRemoveAdd(Box<ActiveObjectRemoveAddSpec>)
ActiveObjectMessages(Box<ActiveObjectMessagesSpec>)
Hp(Box<HpSpec>)
MovePlayer(Box<MovePlayerSpec>)
AccessDeniedLegacy(Box<AccessDeniedLegacySpec>)
Fov(Box<FovSpec>)
Deathscreen(Box<DeathscreenSpec>)
Media(Box<MediaSpec>)
Nodedef(Box<NodedefSpec>)
AnnounceMedia(Box<AnnounceMediaSpec>)
Itemdef(Box<ItemdefSpec>)
PlaySound(Box<PlaySoundSpec>)
StopSound(Box<StopSoundSpec>)
Privileges(Box<PrivilegesSpec>)
InventoryFormspec(Box<InventoryFormspecSpec>)
DetachedInventory(Box<DetachedInventorySpec>)
ShowFormspec(Box<ShowFormspecSpec>)
Movement(Box<MovementSpec>)
SpawnParticle(Box<SpawnParticleSpec>)
AddParticlespawner(Box<AddParticlespawnerSpec>)
Hudadd(Box<HudaddSpec>)
Hudrm(Box<HudrmSpec>)
Hudchange(Box<HudchangeSpec>)
HudSetFlags(Box<HudSetFlagsSpec>)
HudSetParam(Box<HudSetParamSpec>)
Breath(Box<BreathSpec>)
SetSky(Box<SetSkySpec>)
OverrideDayNightRatio(Box<OverrideDayNightRatioSpec>)
LocalPlayerAnimations(Box<LocalPlayerAnimationsSpec>)
EyeOffset(Box<EyeOffsetSpec>)
DeleteParticlespawner(Box<DeleteParticlespawnerSpec>)
CloudParams(Box<CloudParamsSpec>)
FadeSound(Box<FadeSoundSpec>)
UpdatePlayerList(Box<UpdatePlayerListSpec>)
TCModchannelMsg(Box<TCModchannelMsgSpec>)
ModchannelSignal(Box<ModchannelSignalSpec>)
NodemetaChanged(Box<NodemetaChangedSpec>)
SetSun(Box<SetSunSpec>)
SetMoon(Box<SetMoonSpec>)
SetStars(Box<SetStarsSpec>)
SrpBytesSB(Box<SrpBytesSBSpec>)
FormspecPrepend(Box<FormspecPrependSpec>)
MinimapModes(Box<MinimapModesSpec>)
SetLighting(Box<SetLightingSpec>)
Trait Implementations§
Source§impl Clone for ToClientCommand
impl Clone for ToClientCommand
Source§fn clone(&self) -> ToClientCommand
fn clone(&self) -> ToClientCommand
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CommandProperties for ToClientCommand
impl CommandProperties for ToClientCommand
fn direction(&self) -> CommandDirection
fn default_channel(&self) -> u8
fn default_reliability(&self) -> bool
fn command_name(&self) -> &'static str
Source§impl CommandRef for ToClientCommand
impl CommandRef for ToClientCommand
fn toserver_ref(&self) -> Option<&ToServerCommand>
fn toclient_ref(&self) -> Option<&ToClientCommand>
Source§impl Debug for ToClientCommand
impl Debug for ToClientCommand
Source§impl Deserialize for ToClientCommand
impl Deserialize for ToClientCommand
Source§type Output = ToClientCommand
type Output = ToClientCommand
Output should be Self, except for wrapper types.
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
Source§impl From<AcceptSudoModeSpec> for ToClientCommand
impl From<AcceptSudoModeSpec> for ToClientCommand
Source§fn from(value: AcceptSudoModeSpec) -> Self
fn from(value: AcceptSudoModeSpec) -> Self
Converts to this type from the input type.
Source§impl From<AccessDeniedLegacySpec> for ToClientCommand
impl From<AccessDeniedLegacySpec> for ToClientCommand
Source§fn from(value: AccessDeniedLegacySpec) -> Self
fn from(value: AccessDeniedLegacySpec) -> Self
Converts to this type from the input type.
Source§impl From<AccessDeniedSpec> for ToClientCommand
impl From<AccessDeniedSpec> for ToClientCommand
Source§fn from(value: AccessDeniedSpec) -> Self
fn from(value: AccessDeniedSpec) -> Self
Converts to this type from the input type.
Source§impl From<ActiveObjectMessagesSpec> for ToClientCommand
impl From<ActiveObjectMessagesSpec> for ToClientCommand
Source§fn from(value: ActiveObjectMessagesSpec) -> Self
fn from(value: ActiveObjectMessagesSpec) -> Self
Converts to this type from the input type.
Source§impl From<ActiveObjectRemoveAddSpec> for ToClientCommand
impl From<ActiveObjectRemoveAddSpec> for ToClientCommand
Source§fn from(value: ActiveObjectRemoveAddSpec) -> Self
fn from(value: ActiveObjectRemoveAddSpec) -> Self
Converts to this type from the input type.
Source§impl From<AddParticlespawnerSpec> for ToClientCommand
impl From<AddParticlespawnerSpec> for ToClientCommand
Source§fn from(value: AddParticlespawnerSpec) -> Self
fn from(value: AddParticlespawnerSpec) -> Self
Converts to this type from the input type.
Source§impl From<AddnodeSpec> for ToClientCommand
impl From<AddnodeSpec> for ToClientCommand
Source§fn from(value: AddnodeSpec) -> Self
fn from(value: AddnodeSpec) -> Self
Converts to this type from the input type.
Source§impl From<AnnounceMediaSpec> for ToClientCommand
impl From<AnnounceMediaSpec> for ToClientCommand
Source§fn from(value: AnnounceMediaSpec) -> Self
fn from(value: AnnounceMediaSpec) -> Self
Converts to this type from the input type.
Source§impl From<AuthAcceptSpec> for ToClientCommand
impl From<AuthAcceptSpec> for ToClientCommand
Source§fn from(value: AuthAcceptSpec) -> Self
fn from(value: AuthAcceptSpec) -> Self
Converts to this type from the input type.
Source§impl From<BlockdataSpec> for ToClientCommand
impl From<BlockdataSpec> for ToClientCommand
Source§fn from(value: BlockdataSpec) -> Self
fn from(value: BlockdataSpec) -> Self
Converts to this type from the input type.
Source§impl From<BreathSpec> for ToClientCommand
impl From<BreathSpec> for ToClientCommand
Source§fn from(value: BreathSpec) -> Self
fn from(value: BreathSpec) -> Self
Converts to this type from the input type.
Source§impl From<CloudParamsSpec> for ToClientCommand
impl From<CloudParamsSpec> for ToClientCommand
Source§fn from(value: CloudParamsSpec) -> Self
fn from(value: CloudParamsSpec) -> Self
Converts to this type from the input type.
Source§impl From<CsmRestrictionFlagsSpec> for ToClientCommand
impl From<CsmRestrictionFlagsSpec> for ToClientCommand
Source§fn from(value: CsmRestrictionFlagsSpec) -> Self
fn from(value: CsmRestrictionFlagsSpec) -> Self
Converts to this type from the input type.
Source§impl From<DeathscreenSpec> for ToClientCommand
impl From<DeathscreenSpec> for ToClientCommand
Source§fn from(value: DeathscreenSpec) -> Self
fn from(value: DeathscreenSpec) -> Self
Converts to this type from the input type.
Source§impl From<DeleteParticlespawnerSpec> for ToClientCommand
impl From<DeleteParticlespawnerSpec> for ToClientCommand
Source§fn from(value: DeleteParticlespawnerSpec) -> Self
fn from(value: DeleteParticlespawnerSpec) -> Self
Converts to this type from the input type.
Source§impl From<DenySudoModeSpec> for ToClientCommand
impl From<DenySudoModeSpec> for ToClientCommand
Source§fn from(value: DenySudoModeSpec) -> Self
fn from(value: DenySudoModeSpec) -> Self
Converts to this type from the input type.
Source§impl From<DetachedInventorySpec> for ToClientCommand
impl From<DetachedInventorySpec> for ToClientCommand
Source§fn from(value: DetachedInventorySpec) -> Self
fn from(value: DetachedInventorySpec) -> Self
Converts to this type from the input type.
Source§impl From<EyeOffsetSpec> for ToClientCommand
impl From<EyeOffsetSpec> for ToClientCommand
Source§fn from(value: EyeOffsetSpec) -> Self
fn from(value: EyeOffsetSpec) -> Self
Converts to this type from the input type.
Source§impl From<FadeSoundSpec> for ToClientCommand
impl From<FadeSoundSpec> for ToClientCommand
Source§fn from(value: FadeSoundSpec) -> Self
fn from(value: FadeSoundSpec) -> Self
Converts to this type from the input type.
Source§impl From<FormspecPrependSpec> for ToClientCommand
impl From<FormspecPrependSpec> for ToClientCommand
Source§fn from(value: FormspecPrependSpec) -> Self
fn from(value: FormspecPrependSpec) -> Self
Converts to this type from the input type.
Source§impl From<FovSpec> for ToClientCommand
impl From<FovSpec> for ToClientCommand
Source§impl From<HelloSpec> for ToClientCommand
impl From<HelloSpec> for ToClientCommand
Source§impl From<HpSpec> for ToClientCommand
impl From<HpSpec> for ToClientCommand
Source§impl From<HudSetFlagsSpec> for ToClientCommand
impl From<HudSetFlagsSpec> for ToClientCommand
Source§fn from(value: HudSetFlagsSpec) -> Self
fn from(value: HudSetFlagsSpec) -> Self
Converts to this type from the input type.
Source§impl From<HudSetParamSpec> for ToClientCommand
impl From<HudSetParamSpec> for ToClientCommand
Source§fn from(value: HudSetParamSpec) -> Self
fn from(value: HudSetParamSpec) -> Self
Converts to this type from the input type.
Source§impl From<HudaddSpec> for ToClientCommand
impl From<HudaddSpec> for ToClientCommand
Source§fn from(value: HudaddSpec) -> Self
fn from(value: HudaddSpec) -> Self
Converts to this type from the input type.
Source§impl From<HudchangeSpec> for ToClientCommand
impl From<HudchangeSpec> for ToClientCommand
Source§fn from(value: HudchangeSpec) -> Self
fn from(value: HudchangeSpec) -> Self
Converts to this type from the input type.
Source§impl From<HudrmSpec> for ToClientCommand
impl From<HudrmSpec> for ToClientCommand
Source§impl From<InventoryFormspecSpec> for ToClientCommand
impl From<InventoryFormspecSpec> for ToClientCommand
Source§fn from(value: InventoryFormspecSpec) -> Self
fn from(value: InventoryFormspecSpec) -> Self
Converts to this type from the input type.
Source§impl From<InventorySpec> for ToClientCommand
impl From<InventorySpec> for ToClientCommand
Source§fn from(value: InventorySpec) -> Self
fn from(value: InventorySpec) -> Self
Converts to this type from the input type.
Source§impl From<ItemdefSpec> for ToClientCommand
impl From<ItemdefSpec> for ToClientCommand
Source§fn from(value: ItemdefSpec) -> Self
fn from(value: ItemdefSpec) -> Self
Converts to this type from the input type.
Source§impl From<LocalPlayerAnimationsSpec> for ToClientCommand
impl From<LocalPlayerAnimationsSpec> for ToClientCommand
Source§fn from(value: LocalPlayerAnimationsSpec) -> Self
fn from(value: LocalPlayerAnimationsSpec) -> Self
Converts to this type from the input type.
Source§impl From<MediaPushSpec> for ToClientCommand
impl From<MediaPushSpec> for ToClientCommand
Source§fn from(value: MediaPushSpec) -> Self
fn from(value: MediaPushSpec) -> Self
Converts to this type from the input type.
Source§impl From<MediaSpec> for ToClientCommand
impl From<MediaSpec> for ToClientCommand
Source§impl From<MinimapModesSpec> for ToClientCommand
impl From<MinimapModesSpec> for ToClientCommand
Source§fn from(value: MinimapModesSpec) -> Self
fn from(value: MinimapModesSpec) -> Self
Converts to this type from the input type.
Source§impl From<ModchannelSignalSpec> for ToClientCommand
impl From<ModchannelSignalSpec> for ToClientCommand
Source§fn from(value: ModchannelSignalSpec) -> Self
fn from(value: ModchannelSignalSpec) -> Self
Converts to this type from the input type.
Source§impl From<MovePlayerSpec> for ToClientCommand
impl From<MovePlayerSpec> for ToClientCommand
Source§fn from(value: MovePlayerSpec) -> Self
fn from(value: MovePlayerSpec) -> Self
Converts to this type from the input type.
Source§impl From<MovementSpec> for ToClientCommand
impl From<MovementSpec> for ToClientCommand
Source§fn from(value: MovementSpec) -> Self
fn from(value: MovementSpec) -> Self
Converts to this type from the input type.
Source§impl From<NodedefSpec> for ToClientCommand
impl From<NodedefSpec> for ToClientCommand
Source§fn from(value: NodedefSpec) -> Self
fn from(value: NodedefSpec) -> Self
Converts to this type from the input type.
Source§impl From<NodemetaChangedSpec> for ToClientCommand
impl From<NodemetaChangedSpec> for ToClientCommand
Source§fn from(value: NodemetaChangedSpec) -> Self
fn from(value: NodemetaChangedSpec) -> Self
Converts to this type from the input type.
Source§impl From<OverrideDayNightRatioSpec> for ToClientCommand
impl From<OverrideDayNightRatioSpec> for ToClientCommand
Source§fn from(value: OverrideDayNightRatioSpec) -> Self
fn from(value: OverrideDayNightRatioSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlaySoundSpec> for ToClientCommand
impl From<PlaySoundSpec> for ToClientCommand
Source§fn from(value: PlaySoundSpec) -> Self
fn from(value: PlaySoundSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayerSpeedSpec> for ToClientCommand
impl From<PlayerSpeedSpec> for ToClientCommand
Source§fn from(value: PlayerSpeedSpec) -> Self
fn from(value: PlayerSpeedSpec) -> Self
Converts to this type from the input type.
Source§impl From<PrivilegesSpec> for ToClientCommand
impl From<PrivilegesSpec> for ToClientCommand
Source§fn from(value: PrivilegesSpec) -> Self
fn from(value: PrivilegesSpec) -> Self
Converts to this type from the input type.
Source§impl From<RemovenodeSpec> for ToClientCommand
impl From<RemovenodeSpec> for ToClientCommand
Source§fn from(value: RemovenodeSpec) -> Self
fn from(value: RemovenodeSpec) -> Self
Converts to this type from the input type.
Source§impl From<SetLightingSpec> for ToClientCommand
impl From<SetLightingSpec> for ToClientCommand
Source§fn from(value: SetLightingSpec) -> Self
fn from(value: SetLightingSpec) -> Self
Converts to this type from the input type.
Source§impl From<SetMoonSpec> for ToClientCommand
impl From<SetMoonSpec> for ToClientCommand
Source§fn from(value: SetMoonSpec) -> Self
fn from(value: SetMoonSpec) -> Self
Converts to this type from the input type.
Source§impl From<SetSkySpec> for ToClientCommand
impl From<SetSkySpec> for ToClientCommand
Source§fn from(value: SetSkySpec) -> Self
fn from(value: SetSkySpec) -> Self
Converts to this type from the input type.
Source§impl From<SetStarsSpec> for ToClientCommand
impl From<SetStarsSpec> for ToClientCommand
Source§fn from(value: SetStarsSpec) -> Self
fn from(value: SetStarsSpec) -> Self
Converts to this type from the input type.
Source§impl From<SetSunSpec> for ToClientCommand
impl From<SetSunSpec> for ToClientCommand
Source§fn from(value: SetSunSpec) -> Self
fn from(value: SetSunSpec) -> Self
Converts to this type from the input type.
Source§impl From<ShowFormspecSpec> for ToClientCommand
impl From<ShowFormspecSpec> for ToClientCommand
Source§fn from(value: ShowFormspecSpec) -> Self
fn from(value: ShowFormspecSpec) -> Self
Converts to this type from the input type.
Source§impl From<SpawnParticleSpec> for ToClientCommand
impl From<SpawnParticleSpec> for ToClientCommand
Source§fn from(value: SpawnParticleSpec) -> Self
fn from(value: SpawnParticleSpec) -> Self
Converts to this type from the input type.
Source§impl From<SrpBytesSBSpec> for ToClientCommand
impl From<SrpBytesSBSpec> for ToClientCommand
Source§fn from(value: SrpBytesSBSpec) -> Self
fn from(value: SrpBytesSBSpec) -> Self
Converts to this type from the input type.
Source§impl From<StopSoundSpec> for ToClientCommand
impl From<StopSoundSpec> for ToClientCommand
Source§fn from(value: StopSoundSpec) -> Self
fn from(value: StopSoundSpec) -> Self
Converts to this type from the input type.
Source§impl From<TCChatMessageSpec> for ToClientCommand
impl From<TCChatMessageSpec> for ToClientCommand
Source§fn from(value: TCChatMessageSpec) -> Self
fn from(value: TCChatMessageSpec) -> Self
Converts to this type from the input type.
Source§impl From<TCModchannelMsgSpec> for ToClientCommand
impl From<TCModchannelMsgSpec> for ToClientCommand
Source§fn from(value: TCModchannelMsgSpec) -> Self
fn from(value: TCModchannelMsgSpec) -> Self
Converts to this type from the input type.
Source§impl From<TimeOfDaySpec> for ToClientCommand
impl From<TimeOfDaySpec> for ToClientCommand
Source§fn from(value: TimeOfDaySpec) -> Self
fn from(value: TimeOfDaySpec) -> Self
Converts to this type from the input type.
Source§impl From<UpdatePlayerListSpec> for ToClientCommand
impl From<UpdatePlayerListSpec> for ToClientCommand
Source§fn from(value: UpdatePlayerListSpec) -> Self
fn from(value: UpdatePlayerListSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ToClientCommand
impl PartialEq for ToClientCommand
Source§impl Serialize for ToClientCommand
impl Serialize for ToClientCommand
type Input = ToClientCommand
fn serialize<S: Serializer>(value: &Self::Input, ser: &mut S) -> SerializeResult
impl StructuralPartialEq for ToClientCommand
Auto Trait Implementations§
impl Freeze for ToClientCommand
impl RefUnwindSafe for ToClientCommand
impl Send for ToClientCommand
impl Sync for ToClientCommand
impl Unpin for ToClientCommand
impl UnwindSafe for ToClientCommand
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