Enum minetest_protocol::wire::command::ToServerCommand
source · pub enum ToServerCommand {
Show 25 variants
Null(Box<NullSpec>),
Init(Box<InitSpec>),
Init2(Box<Init2Spec>),
ModchannelJoin(Box<ModchannelJoinSpec>),
ModchannelLeave(Box<ModchannelLeaveSpec>),
TSModchannelMsg(Box<TSModchannelMsgSpec>),
Playerpos(Box<PlayerposSpec>),
Gotblocks(Box<GotblocksSpec>),
Deletedblocks(Box<DeletedblocksSpec>),
InventoryAction(Box<InventoryActionSpec>),
TSChatMessage(Box<TSChatMessageSpec>),
Damage(Box<DamageSpec>),
Playeritem(Box<PlayeritemSpec>),
Respawn(Box<RespawnSpec>),
Interact(Box<InteractSpec>),
RemovedSounds(Box<RemovedSoundsSpec>),
NodemetaFields(Box<NodemetaFieldsSpec>),
InventoryFields(Box<InventoryFieldsSpec>),
RequestMedia(Box<RequestMediaSpec>),
HaveMedia(Box<HaveMediaSpec>),
ClientReady(Box<ClientReadySpec>),
FirstSrp(Box<FirstSrpSpec>),
SrpBytesA(Box<SrpBytesASpec>),
SrpBytesM(Box<SrpBytesMSpec>),
UpdateClientInfo(Box<UpdateClientInfoSpec>),
}
Variants§
Null(Box<NullSpec>)
Init(Box<InitSpec>)
Init2(Box<Init2Spec>)
ModchannelJoin(Box<ModchannelJoinSpec>)
ModchannelLeave(Box<ModchannelLeaveSpec>)
TSModchannelMsg(Box<TSModchannelMsgSpec>)
Playerpos(Box<PlayerposSpec>)
Gotblocks(Box<GotblocksSpec>)
Deletedblocks(Box<DeletedblocksSpec>)
InventoryAction(Box<InventoryActionSpec>)
TSChatMessage(Box<TSChatMessageSpec>)
Damage(Box<DamageSpec>)
Playeritem(Box<PlayeritemSpec>)
Respawn(Box<RespawnSpec>)
Interact(Box<InteractSpec>)
RemovedSounds(Box<RemovedSoundsSpec>)
NodemetaFields(Box<NodemetaFieldsSpec>)
InventoryFields(Box<InventoryFieldsSpec>)
RequestMedia(Box<RequestMediaSpec>)
HaveMedia(Box<HaveMediaSpec>)
ClientReady(Box<ClientReadySpec>)
FirstSrp(Box<FirstSrpSpec>)
SrpBytesA(Box<SrpBytesASpec>)
SrpBytesM(Box<SrpBytesMSpec>)
UpdateClientInfo(Box<UpdateClientInfoSpec>)
Trait Implementations§
source§impl Clone for ToServerCommand
impl Clone for ToServerCommand
source§fn clone(&self) -> ToServerCommand
fn clone(&self) -> ToServerCommand
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 ToServerCommand
impl CommandProperties for ToServerCommand
fn direction(&self) -> CommandDirection
fn default_channel(&self) -> u8
fn default_reliability(&self) -> bool
fn command_name(&self) -> &'static str
source§impl CommandRef for ToServerCommand
impl CommandRef for ToServerCommand
fn toserver_ref(&self) -> Option<&ToServerCommand>
fn toclient_ref(&self) -> Option<&ToClientCommand>
source§impl Debug for ToServerCommand
impl Debug for ToServerCommand
source§impl Deserialize for ToServerCommand
impl Deserialize for ToServerCommand
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
source§impl From<ClientReadySpec> for ToServerCommand
impl From<ClientReadySpec> for ToServerCommand
source§fn from(value: ClientReadySpec) -> Self
fn from(value: ClientReadySpec) -> Self
Converts to this type from the input type.
source§impl From<DamageSpec> for ToServerCommand
impl From<DamageSpec> for ToServerCommand
source§fn from(value: DamageSpec) -> Self
fn from(value: DamageSpec) -> Self
Converts to this type from the input type.
source§impl From<DeletedblocksSpec> for ToServerCommand
impl From<DeletedblocksSpec> for ToServerCommand
source§fn from(value: DeletedblocksSpec) -> Self
fn from(value: DeletedblocksSpec) -> Self
Converts to this type from the input type.
source§impl From<FirstSrpSpec> for ToServerCommand
impl From<FirstSrpSpec> for ToServerCommand
source§fn from(value: FirstSrpSpec) -> Self
fn from(value: FirstSrpSpec) -> Self
Converts to this type from the input type.
source§impl From<GotblocksSpec> for ToServerCommand
impl From<GotblocksSpec> for ToServerCommand
source§fn from(value: GotblocksSpec) -> Self
fn from(value: GotblocksSpec) -> Self
Converts to this type from the input type.
source§impl From<HaveMediaSpec> for ToServerCommand
impl From<HaveMediaSpec> for ToServerCommand
source§fn from(value: HaveMediaSpec) -> Self
fn from(value: HaveMediaSpec) -> Self
Converts to this type from the input type.
source§impl From<Init2Spec> for ToServerCommand
impl From<Init2Spec> for ToServerCommand
source§impl From<InitSpec> for ToServerCommand
impl From<InitSpec> for ToServerCommand
source§impl From<InteractSpec> for ToServerCommand
impl From<InteractSpec> for ToServerCommand
source§fn from(value: InteractSpec) -> Self
fn from(value: InteractSpec) -> Self
Converts to this type from the input type.
source§impl From<InventoryActionSpec> for ToServerCommand
impl From<InventoryActionSpec> for ToServerCommand
source§fn from(value: InventoryActionSpec) -> Self
fn from(value: InventoryActionSpec) -> Self
Converts to this type from the input type.
source§impl From<InventoryFieldsSpec> for ToServerCommand
impl From<InventoryFieldsSpec> for ToServerCommand
source§fn from(value: InventoryFieldsSpec) -> Self
fn from(value: InventoryFieldsSpec) -> Self
Converts to this type from the input type.
source§impl From<ModchannelJoinSpec> for ToServerCommand
impl From<ModchannelJoinSpec> for ToServerCommand
source§fn from(value: ModchannelJoinSpec) -> Self
fn from(value: ModchannelJoinSpec) -> Self
Converts to this type from the input type.
source§impl From<ModchannelLeaveSpec> for ToServerCommand
impl From<ModchannelLeaveSpec> for ToServerCommand
source§fn from(value: ModchannelLeaveSpec) -> Self
fn from(value: ModchannelLeaveSpec) -> Self
Converts to this type from the input type.
source§impl From<NodemetaFieldsSpec> for ToServerCommand
impl From<NodemetaFieldsSpec> for ToServerCommand
source§fn from(value: NodemetaFieldsSpec) -> Self
fn from(value: NodemetaFieldsSpec) -> Self
Converts to this type from the input type.
source§impl From<NullSpec> for ToServerCommand
impl From<NullSpec> for ToServerCommand
source§impl From<PlayeritemSpec> for ToServerCommand
impl From<PlayeritemSpec> for ToServerCommand
source§fn from(value: PlayeritemSpec) -> Self
fn from(value: PlayeritemSpec) -> Self
Converts to this type from the input type.
source§impl From<PlayerposSpec> for ToServerCommand
impl From<PlayerposSpec> for ToServerCommand
source§fn from(value: PlayerposSpec) -> Self
fn from(value: PlayerposSpec) -> Self
Converts to this type from the input type.
source§impl From<RemovedSoundsSpec> for ToServerCommand
impl From<RemovedSoundsSpec> for ToServerCommand
source§fn from(value: RemovedSoundsSpec) -> Self
fn from(value: RemovedSoundsSpec) -> Self
Converts to this type from the input type.
source§impl From<RequestMediaSpec> for ToServerCommand
impl From<RequestMediaSpec> for ToServerCommand
source§fn from(value: RequestMediaSpec) -> Self
fn from(value: RequestMediaSpec) -> Self
Converts to this type from the input type.
source§impl From<RespawnSpec> for ToServerCommand
impl From<RespawnSpec> for ToServerCommand
source§fn from(value: RespawnSpec) -> Self
fn from(value: RespawnSpec) -> Self
Converts to this type from the input type.
source§impl From<SrpBytesASpec> for ToServerCommand
impl From<SrpBytesASpec> for ToServerCommand
source§fn from(value: SrpBytesASpec) -> Self
fn from(value: SrpBytesASpec) -> Self
Converts to this type from the input type.
source§impl From<SrpBytesMSpec> for ToServerCommand
impl From<SrpBytesMSpec> for ToServerCommand
source§fn from(value: SrpBytesMSpec) -> Self
fn from(value: SrpBytesMSpec) -> Self
Converts to this type from the input type.
source§impl From<TSChatMessageSpec> for ToServerCommand
impl From<TSChatMessageSpec> for ToServerCommand
source§fn from(value: TSChatMessageSpec) -> Self
fn from(value: TSChatMessageSpec) -> Self
Converts to this type from the input type.
source§impl From<TSModchannelMsgSpec> for ToServerCommand
impl From<TSModchannelMsgSpec> for ToServerCommand
source§fn from(value: TSModchannelMsgSpec) -> Self
fn from(value: TSModchannelMsgSpec) -> Self
Converts to this type from the input type.
source§impl From<UpdateClientInfoSpec> for ToServerCommand
impl From<UpdateClientInfoSpec> for ToServerCommand
source§fn from(value: UpdateClientInfoSpec) -> Self
fn from(value: UpdateClientInfoSpec) -> Self
Converts to this type from the input type.
source§impl PartialEq<ToServerCommand> for ToServerCommand
impl PartialEq<ToServerCommand> for ToServerCommand
source§fn eq(&self, other: &ToServerCommand) -> bool
fn eq(&self, other: &ToServerCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.