Skip to main content

Encode

Trait Encode 

Source
pub trait Encode {
    // Required method
    fn encode(&self, w: &mut BytesMut) -> EncodeResult;
}
Expand description

A value that can be encoded to protocol bytes.

Required Methods§

Source

fn encode(&self, w: &mut BytesMut) -> EncodeResult

Appends the encoding of self to w.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Abilities

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::Abilities

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Abilities

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::Abilities

Source§

impl Encode for AcknowledgePlayerDigging

Source§

impl Encode for AdvancementTab

Source§

impl Encode for Advancements

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Animation

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Animation

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::ArmAnimation

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::ArmAnimation

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::AttachEntity

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::AttachEntity

Source§

impl Encode for Bed

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::BlockAction

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::BlockAction

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::BlockBreakAnimation

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::BlockBreakAnimation

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::BlockChange

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::BlockChange

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::BlockDig

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::BlockDig

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::BlockPlace

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::BlockPlace

Source§

impl Encode for BossBar

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Camera

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Camera

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Chat

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::Chat

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Chat

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::Chat

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::ClientCommand

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::ClientCommand

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::CloseWindow

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::CloseWindow

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::CloseWindow

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::CloseWindow

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Collect

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Collect

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::CombatEvent

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::CombatEvent

Source§

impl Encode for CommandNode

Source§

impl Encode for ghast_protocol::v1_8::login::clientbound::Compress

Source§

impl Encode for ghast_protocol::v1_16_5::login::clientbound::Compress

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::CraftProgressBar

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::CraftProgressBar

Source§

impl Encode for CraftRecipeRequest

Source§

impl Encode for CraftRecipeResponse

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::CustomPayload

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::CustomPayload

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::CustomPayload

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::CustomPayload

Source§

impl Encode for DeclareCommands

Source§

impl Encode for DeclareRecipes

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Difficulty

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Difficulty

Source§

impl Encode for ghast_protocol::v1_8::login::clientbound::Disconnect

Source§

impl Encode for ghast_protocol::v1_16_5::login::clientbound::Disconnect

Source§

impl Encode for DisplayedRecipe

Source§

impl Encode for EditBook

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::EnchantItem

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::EnchantItem

Source§

impl Encode for ghast_protocol::v1_8::login::clientbound::EncryptionBegin

Source§

impl Encode for ghast_protocol::v1_8::login::serverbound::EncryptionBegin

Source§

impl Encode for ghast_protocol::v1_16_5::login::clientbound::EncryptionBegin

Source§

impl Encode for ghast_protocol::v1_16_5::login::serverbound::EncryptionBegin

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Entity

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Entity

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::EntityAction

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::EntityAction

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityDestroy

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityDestroy

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityEffect

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityEffect

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityEquipment

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityEquipment

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityHeadRotation

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityHeadRotation

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityLook

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityLook

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityMetadata

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityMetadata

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityMoveLook

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityMoveLook

Source§

impl Encode for EntitySoundEffect

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityStatus

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityStatus

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityTeleport

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityTeleport

Source§

impl Encode for EntityUpdateAttributes

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::EntityVelocity

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::EntityVelocity

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Experience

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Experience

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Explosion

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Explosion

Source§

impl Encode for FacePlayer

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::Flying

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::Flying

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::GameStateChange

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::GameStateChange

Source§

impl Encode for GenerateStructure

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::HeldItemSlot

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::HeldItemSlot

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::HeldItemSlot

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::HeldItemSlot

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::KeepAlive

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::KeepAlive

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::KeepAlive

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::KeepAlive

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::KickDisconnect

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::KickDisconnect

Source§

impl Encode for ghast_protocol::v1_8::handshaking::serverbound::LegacyServerListPing

Source§

impl Encode for ghast_protocol::v1_16_5::handshaking::serverbound::LegacyServerListPing

Source§

impl Encode for LockDifficulty

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Login

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Login

Source§

impl Encode for LoginPluginRequest

Source§

impl Encode for LoginPluginResponse

Source§

impl Encode for ghast_protocol::v1_8::login::serverbound::LoginStart

Source§

impl Encode for ghast_protocol::v1_16_5::login::serverbound::LoginStart

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::Look

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::Look

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Map

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Map

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::MapChunk

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::MapChunk

Source§

impl Encode for MapChunkBulk

Source§

impl Encode for MinecraftSmeltingFormat

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::MultiBlockChange

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::MultiBlockChange

Source§

impl Encode for NameItem

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::NamedEntitySpawn

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::NamedEntitySpawn

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::NamedSoundEffect

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::NamedSoundEffect

Source§

impl Encode for NamedTag

Source§

impl Encode for NbtQueryResponse

Source§

impl Encode for OpenBook

Source§

impl Encode for OpenHorseWindow

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::OpenSignEntity

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::OpenSignEntity

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::OpenWindow

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::OpenWindow

Source§

impl Encode for Particle

Source§

impl Encode for PickItem

Source§

impl Encode for ghast_protocol::v1_8::status::clientbound::Ping

Source§

impl Encode for ghast_protocol::v1_8::status::serverbound::Ping

Source§

impl Encode for ghast_protocol::v1_16_5::status::clientbound::Ping

Source§

impl Encode for ghast_protocol::v1_16_5::status::serverbound::Ping

Source§

impl Encode for ghast_protocol::v1_8::status::serverbound::PingStart

Source§

impl Encode for ghast_protocol::v1_16_5::status::serverbound::PingStart

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::PlayerInfo

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::PlayerInfo

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::PlayerlistHeader

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::PlayerlistHeader

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Position

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::Position

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Position

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::Position

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::PositionLook

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::PositionLook

Source§

impl Encode for QueryBlockNbt

Source§

impl Encode for QueryEntityNbt

Source§

impl Encode for RawNbt

Source§

impl Encode for RecipeBook

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::RelEntityMove

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::RelEntityMove

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::RemoveEntityEffect

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::RemoveEntityEffect

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::ResourcePackReceive

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::ResourcePackReceive

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::ResourcePackSend

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::ResourcePackSend

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Respawn

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Respawn

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::ScoreboardDisplayObjective

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::ScoreboardDisplayObjective

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::ScoreboardObjective

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::ScoreboardObjective

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::ScoreboardScore

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::ScoreboardScore

Source§

impl Encode for ScoreboardTeam

Source§

impl Encode for SelectAdvancementTab

Source§

impl Encode for SelectTrade

Source§

impl Encode for ghast_protocol::v1_8::status::clientbound::ServerInfo

Source§

impl Encode for ghast_protocol::v1_16_5::status::clientbound::ServerInfo

Source§

impl Encode for SetBeaconEffect

Source§

impl Encode for SetCompression

Source§

impl Encode for SetCooldown

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::SetCreativeSlot

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::SetCreativeSlot

Source§

impl Encode for SetDifficulty

Source§

impl Encode for SetPassengers

Source§

impl Encode for ghast_protocol::v1_8::handshaking::serverbound::SetProtocol

Source§

impl Encode for ghast_protocol::v1_16_5::handshaking::serverbound::SetProtocol

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::SetSlot

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::SetSlot

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::Settings

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::Settings

Source§

impl Encode for ghast_protocol::types::slot::legacy::Slot

Source§

impl Encode for ghast_protocol::types::slot::modern::Slot

Source§

impl Encode for SoundEffect

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::SpawnEntity

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::SpawnEntity

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::SpawnEntityExperienceOrb

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::SpawnEntityExperienceOrb

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::SpawnEntityLiving

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::SpawnEntityLiving

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::SpawnEntityPainting

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::SpawnEntityPainting

Source§

impl Encode for SpawnEntityWeather

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::SpawnPosition

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::SpawnPosition

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::Spectate

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::Spectate

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Statistics

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Statistics

Source§

impl Encode for SteerBoat

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::SteerVehicle

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::SteerVehicle

Source§

impl Encode for StopSound

Source§

impl Encode for ghast_protocol::v1_8::login::clientbound::Success

Source§

impl Encode for ghast_protocol::v1_16_5::login::clientbound::Success

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::TabComplete

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::TabComplete

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::TabComplete

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::TabComplete

Source§

impl Encode for Tags

Source§

impl Encode for Teams

Source§

impl Encode for TeleportConfirm

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::TileEntityData

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::TileEntityData

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Title

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Title

Source§

impl Encode for TradeList

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::Transaction

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::Transaction

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::Transaction

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::Transaction

Source§

impl Encode for UnloadChunk

Source§

impl Encode for UnlockRecipes

Source§

impl Encode for UpdateAttributes

Source§

impl Encode for UpdateCommandBlock

Source§

impl Encode for UpdateCommandBlockMinecart

Source§

impl Encode for UpdateEntityNbt

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::UpdateHealth

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::UpdateHealth

Source§

impl Encode for UpdateJigsawBlock

Source§

impl Encode for UpdateLight

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::UpdateSign

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::UpdateSign

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::UpdateSign

Source§

impl Encode for UpdateStructureBlock

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::UpdateTime

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::UpdateTime

Source§

impl Encode for UpdateViewDistance

Source§

impl Encode for UpdateViewPosition

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::UseEntity

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::UseEntity

Source§

impl Encode for UseItem

Source§

impl Encode for ghast_protocol::v1_8::types::Vec3i16

Source§

impl Encode for ghast_protocol::v1_16_5::types::Vec3i16

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::VehicleMove

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::VehicleMove

Source§

impl Encode for ghast_protocol::v1_8::play::serverbound::WindowClick

Source§

impl Encode for ghast_protocol::v1_16_5::play::serverbound::WindowClick

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::WindowItems

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::WindowItems

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::WorldBorder

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::WorldBorder

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::WorldEvent

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::WorldEvent

Source§

impl Encode for ghast_protocol::v1_8::play::clientbound::WorldParticles

Source§

impl Encode for ghast_protocol::v1_16_5::play::clientbound::WorldParticles