Skip to main content

Decode

Trait Decode 

Source
pub trait Decode: Sized {
    // Required method
    fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>;
}
Expand description

A value that can be decoded from protocol bytes.

Required Methods§

Source

fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>

Decodes one value, advancing the reader past it.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for AcknowledgePlayerDigging

Source§

impl Decode for AdvancementTab

Source§

impl Decode for Advancements

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for Bed

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for BossBar

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for CommandNode

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for CraftRecipeRequest

Source§

impl Decode for CraftRecipeResponse

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for DeclareCommands

Source§

impl Decode for DeclareRecipes

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for DisplayedRecipe

Source§

impl Decode for EditBook

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for EntitySoundEffect

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for EntityUpdateAttributes

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for FacePlayer

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for GenerateStructure

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for LockDifficulty

Source§

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

Source§

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

Source§

impl Decode for LoginPluginRequest

Source§

impl Decode for LoginPluginResponse

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for MapChunkBulk

Source§

impl Decode for MinecraftSmeltingFormat

Source§

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

Source§

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

Source§

impl Decode for NameItem

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for NbtQueryResponse

Source§

impl Decode for OpenBook

Source§

impl Decode for OpenHorseWindow

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for Particle

Source§

impl Decode for PickItem

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for QueryBlockNbt

Source§

impl Decode for QueryEntityNbt

Source§

impl Decode for RawNbt

Source§

impl Decode for RecipeBook

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for ScoreboardTeam

Source§

impl Decode for SelectAdvancementTab

Source§

impl Decode for SelectTrade

Source§

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

Source§

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

Source§

impl Decode for SetBeaconEffect

Source§

impl Decode for SetCompression

Source§

impl Decode for SetCooldown

Source§

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

Source§

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

Source§

impl Decode for SetDifficulty

Source§

impl Decode for SetPassengers

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for SoundEffect

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for SpawnEntityWeather

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for SteerBoat

Source§

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

Source§

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

Source§

impl Decode for StopSound

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for Tags

Source§

impl Decode for Teams

Source§

impl Decode for TeleportConfirm

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for TradeList

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl Decode for UnloadChunk

Source§

impl Decode for UnlockRecipes

Source§

impl Decode for UpdateAttributes

Source§

impl Decode for UpdateCommandBlock

Source§

impl Decode for UpdateCommandBlockMinecart

Source§

impl Decode for UpdateEntityNbt

Source§

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

Source§

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

Source§

impl Decode for UpdateJigsawBlock

Source§

impl Decode for UpdateLight

Source§

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

Source§

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

Source§

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

Source§

impl Decode for UpdateStructureBlock

Source§

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

Source§

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

Source§

impl Decode for UpdateViewDistance

Source§

impl Decode for UpdateViewPosition

Source§

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

Source§

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

Source§

impl Decode for UseItem

Source§

impl Decode for ghast_protocol::v1_8::types::Vec3i16

Source§

impl Decode for ghast_protocol::v1_16_5::types::Vec3i16

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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