Trait hematite_server::packet::PacketWrite
[−]
[src]
pub trait PacketWrite { fn inner_len(&self) -> usize; fn inner_encode(&self, dst: &mut Write) -> Result<()>; fn write(&self, dst: &mut Write) -> Result<()> { ... } }
A trait for encoding the body of a single packet type.
Required Methods
Provided Methods
fn write(&self, dst: &mut Write) -> Result<()>
Writes a full packet to a writer, including length.
TODO: add support for compression.
Implementors
impl PacketWrite for Handshake
impl PacketWrite for KeepAlive
impl PacketWrite for JoinGame
impl PacketWrite for TimeUpdate
impl PacketWrite for EntityEquipment
impl PacketWrite for WorldSpawn
impl PacketWrite for UpdateHealth
impl PacketWrite for Respawn
impl PacketWrite for PlayerPositionAndLook
impl PacketWrite for HeldItemChange
impl PacketWrite for UseBed
impl PacketWrite for Animation
impl PacketWrite for CollectItem
impl PacketWrite for SpawnPainting
impl PacketWrite for SpawnExperienceOrb
impl PacketWrite for EntityVelocity
impl PacketWrite for DestroyEntities
impl PacketWrite for EntityIdle
impl PacketWrite for EntityRelativeMove
impl PacketWrite for EntityLook
impl PacketWrite for EntityLookAndRelativeMove
impl PacketWrite for EntityTeleport
impl PacketWrite for EntityHeadLook
impl PacketWrite for EntityStatus
impl PacketWrite for AttachEntity
impl PacketWrite for EntityEffect
impl PacketWrite for RemoveEntityEffect
impl PacketWrite for SetExperience
impl PacketWrite for ChunkData
impl PacketWrite for MultiBlockChange
impl PacketWrite for BlockChange
impl PacketWrite for BlockAction
impl PacketWrite for BlockBreakAnimation
impl PacketWrite for ChunkDataBulk
impl PacketWrite for Explosion
impl PacketWrite for Effect
impl PacketWrite for SoundEffect
impl PacketWrite for ChangeGameState
impl PacketWrite for SpawnGlobalEntity
impl PacketWrite for CloseWindow
impl PacketWrite for SetSlot
impl PacketWrite for WindowItems
impl PacketWrite for WindowProperty
impl PacketWrite for ConfirmTransaction
impl PacketWrite for SignEditorOpen
impl PacketWrite for Statistics
impl PacketWrite for PlayerAbilities
impl PacketWrite for TabComplete
impl PacketWrite for DisplayScoreboard
impl PacketWrite for PluginMessage
impl PacketWrite for ServerDifficulty
impl PacketWrite for Camera
impl PacketWrite for SetCompression
impl PacketWrite for ResourcePackSend
impl PacketWrite for UpdateEntityNbt
impl PacketWrite for KeepAlive
impl PacketWrite for ChatMessage
impl PacketWrite for PlayerIdle
impl PacketWrite for PlayerPosition
impl PacketWrite for PlayerLook
impl PacketWrite for PlayerPositionAndLook
impl PacketWrite for PlayerDigging
impl PacketWrite for PlayerBlockPlacement
impl PacketWrite for HeldItemChange
impl PacketWrite for Animation
impl PacketWrite for EntityAction
impl PacketWrite for SteerVehicle
impl PacketWrite for CloseWindow
impl PacketWrite for ClickWindow
impl PacketWrite for ConfirmTransaction
impl PacketWrite for CreativeInventoryAction
impl PacketWrite for EnchantItem
impl PacketWrite for PlayerAbilities
impl PacketWrite for TabComplete
impl PacketWrite for ClientSettings
impl PacketWrite for ClientStatus
impl PacketWrite for PluginMessage
impl PacketWrite for Spectate
impl PacketWrite for ResourcePackStatus
impl PacketWrite for StatusResponse
impl PacketWrite for Pong
impl PacketWrite for StatusRequest
impl PacketWrite for Ping
impl PacketWrite for EncryptionRequest
impl PacketWrite for LoginSuccess
impl PacketWrite for SetCompression
impl PacketWrite for LoginStart
impl PacketWrite for EncryptionResponse