Skip to main content

ServerPacket

Trait ServerPacket 

Source
pub trait ServerPacket: ReadFrom {
    // Provided method
    fn read_packet(data: &mut Cursor<&[u8]>) -> Result<Self, PacketError> { ... }
}
Expand description

A trait for packets sent from the server to the client.

Provided Methods§

Source

fn read_packet(data: &mut Cursor<&[u8]>) -> Result<Self, PacketError>

Reads a packet from the given data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ServerPacket for SAcceptTeleportation

Source§

impl ServerPacket for SAttack

Source§

impl ServerPacket for SChangeDifficulty

Source§

impl ServerPacket for SChangeGameMode

Source§

impl ServerPacket for SChat

Source§

impl ServerPacket for SChatAck

Source§

impl ServerPacket for SChatCommand

Source§

impl ServerPacket for SChatCommandSigned

Source§

impl ServerPacket for SChatSessionUpdate

Source§

impl ServerPacket for SChunkBatchReceived

Source§

impl ServerPacket for SClientCommand

Source§

impl ServerPacket for SClientInformation

Source§

impl ServerPacket for SClientIntention

Source§

impl ServerPacket for SClientTickEnd

Source§

impl ServerPacket for SCommandSuggestion

Source§

impl ServerPacket for SContainerButtonClick

Source§

impl ServerPacket for SContainerClick

Source§

impl ServerPacket for SContainerClose

Source§

impl ServerPacket for SContainerSlotStateChanged

Source§

impl ServerPacket for SCustomPayload

Source§

impl ServerPacket for SFinishConfiguration

Source§

impl ServerPacket for SHello

Source§

impl ServerPacket for SInteract

Source§

impl ServerPacket for SKeepAlive

Source§

impl ServerPacket for SKey

Source§

impl ServerPacket for SLoginAcknowledged

Source§

impl ServerPacket for SMovePlayerPos

Source§

impl ServerPacket for SMovePlayerPosRot

Source§

impl ServerPacket for SMovePlayerRot

Source§

impl ServerPacket for SMovePlayerStatusOnly

Source§

impl ServerPacket for SMoveVehicle

Source§

impl ServerPacket for SPickItemFromBlock

Source§

impl ServerPacket for SPingRequest

Source§

impl ServerPacket for SPlayerAbilities

Source§

impl ServerPacket for SPlayerAction

Source§

impl ServerPacket for SPlayerCommand

Source§

impl ServerPacket for SPlayerInput

Source§

impl ServerPacket for SPlayerLoad

Source§

impl ServerPacket for SRenameItem

Source§

impl ServerPacket for SSelectKnownPacks

Source§

impl ServerPacket for SSetCarriedItem

Source§

impl ServerPacket for SSetCreativeModeSlot

Source§

impl ServerPacket for SSetHeldItem

Source§

impl ServerPacket for SSignUpdate

Source§

impl ServerPacket for SSpectatorAction

Source§

impl ServerPacket for SStatusRequest

Source§

impl ServerPacket for SSwing

Source§

impl ServerPacket for SUseItem

Source§

impl ServerPacket for SUseItemOn