pub struct ConfigPacketIds;Expand description
CONFIG state packet IDs (stable across all 1.21+ versions).
Implementations§
Source§impl ConfigPacketIds
impl ConfigPacketIds
Sourcepub const FINISHED_CONFIGURATION_CLIENTBOUND: i32 = 0x03
pub const FINISHED_CONFIGURATION_CLIENTBOUND: i32 = 0x03
Clientbound: finished configuration (tells client to enter PLAY). Packet ID 0x03 for all 1.21+ versions.
Sourcepub const FINISHED_CONFIGURATION_SERVERBOUND: i32 = 0x03
pub const FINISHED_CONFIGURATION_SERVERBOUND: i32 = 0x03
Serverbound: finished configuration (client confirms PLAY switch). Packet ID 0x03 for all 1.21+ versions.
Sourcepub const DISCONNECT: i32 = 0x02
pub const DISCONNECT: i32 = 0x02
Clientbound: disconnect during configuration. Packet ID 0x02 for all 1.21+ versions.
Auto Trait Implementations§
impl Freeze for ConfigPacketIds
impl RefUnwindSafe for ConfigPacketIds
impl Send for ConfigPacketIds
impl Sync for ConfigPacketIds
impl Unpin for ConfigPacketIds
impl UnsafeUnpin for ConfigPacketIds
impl UnwindSafe for ConfigPacketIds
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