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
Source§type Output = ToServerCommand
type Output = ToServerCommand
Output should be Self, except for wrapper types.
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 for ToServerCommand
impl PartialEq for ToServerCommand
Source§impl Serialize for ToServerCommand
impl Serialize for ToServerCommand
type Input = ToServerCommand
fn serialize<S: Serializer>(value: &Self::Input, ser: &mut S) -> SerializeResult
impl StructuralPartialEq for ToServerCommand
Auto Trait Implementations§
impl Freeze for ToServerCommand
impl RefUnwindSafe for ToServerCommand
impl Send for ToServerCommand
impl Sync for ToServerCommand
impl Unpin for ToServerCommand
impl UnwindSafe for ToServerCommand
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