pub enum ClientboundConfigurationPacket {
CustomPayload(ClientboundConfigurationCustomPayload),
Disconnect(ClientboundConfigurationDisconnect),
FeatureFlags(ClientboundConfigurationFeatureFlags),
FinishConfiguration(ClientboundConfigurationFinishConfiguration),
KeepAlive(ClientboundConfigurationKeepAlive),
Ping(ClientboundConfigurationPing),
RegistryData(ClientboundConfigurationRegistryData),
ResetChat(ClientboundConfigurationResetChat),
Tags(ClientboundConfigurationTags),
}Expand description
clientbound packets in the Configuration state.
Variants§
CustomPayload(ClientboundConfigurationCustomPayload)
Disconnect(ClientboundConfigurationDisconnect)
FeatureFlags(ClientboundConfigurationFeatureFlags)
FinishConfiguration(ClientboundConfigurationFinishConfiguration)
KeepAlive(ClientboundConfigurationKeepAlive)
Ping(ClientboundConfigurationPing)
RegistryData(ClientboundConfigurationRegistryData)
ResetChat(ClientboundConfigurationResetChat)
Tags(ClientboundConfigurationTags)
Implementations§
Source§impl ClientboundConfigurationPacket
impl ClientboundConfigurationPacket
Sourcepub fn decode_by_id(id: i32, buf: &mut &[u8]) -> Result<Self>
pub fn decode_by_id(id: i32, buf: &mut &[u8]) -> Result<Self>
Decodes a packet from its ID and payload.
Trait Implementations§
Source§impl Clone for ClientboundConfigurationPacket
impl Clone for ClientboundConfigurationPacket
Source§fn clone(&self) -> ClientboundConfigurationPacket
fn clone(&self) -> ClientboundConfigurationPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for ClientboundConfigurationPacket
impl PartialEq for ClientboundConfigurationPacket
Source§fn eq(&self, other: &ClientboundConfigurationPacket) -> bool
fn eq(&self, other: &ClientboundConfigurationPacket) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientboundConfigurationPacket
Auto Trait Implementations§
impl Freeze for ClientboundConfigurationPacket
impl RefUnwindSafe for ClientboundConfigurationPacket
impl Send for ClientboundConfigurationPacket
impl Sync for ClientboundConfigurationPacket
impl Unpin for ClientboundConfigurationPacket
impl UnsafeUnpin for ClientboundConfigurationPacket
impl UnwindSafe for ClientboundConfigurationPacket
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