Enum minetest_protocol::wire::command::ToClientCommand
source · 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
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<ToClientCommand> for ToClientCommand
impl PartialEq<ToClientCommand> for ToClientCommand
source§fn eq(&self, other: &ToClientCommand) -> bool
fn eq(&self, other: &ToClientCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.