pub enum ServerboundConfigurationPacket {
CustomPayload(ServerboundConfigurationCustomPayload),
FinishConfiguration(ServerboundConfigurationFinishConfiguration),
KeepAlive(ServerboundConfigurationKeepAlive),
Pong(ServerboundConfigurationPong),
ResourcePackReceive(ServerboundConfigurationResourcePackReceive),
}Expand description
serverbound packets in the Configuration state.
Variants§
CustomPayload(ServerboundConfigurationCustomPayload)
FinishConfiguration(ServerboundConfigurationFinishConfiguration)
KeepAlive(ServerboundConfigurationKeepAlive)
Pong(ServerboundConfigurationPong)
ResourcePackReceive(ServerboundConfigurationResourcePackReceive)
Implementations§
Source§impl ServerboundConfigurationPacket
impl ServerboundConfigurationPacket
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 ServerboundConfigurationPacket
impl Clone for ServerboundConfigurationPacket
Source§fn clone(&self) -> ServerboundConfigurationPacket
fn clone(&self) -> ServerboundConfigurationPacket
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 ServerboundConfigurationPacket
impl PartialEq for ServerboundConfigurationPacket
Source§fn eq(&self, other: &ServerboundConfigurationPacket) -> bool
fn eq(&self, other: &ServerboundConfigurationPacket) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerboundConfigurationPacket
Auto Trait Implementations§
impl Freeze for ServerboundConfigurationPacket
impl RefUnwindSafe for ServerboundConfigurationPacket
impl Send for ServerboundConfigurationPacket
impl Sync for ServerboundConfigurationPacket
impl Unpin for ServerboundConfigurationPacket
impl UnsafeUnpin for ServerboundConfigurationPacket
impl UnwindSafe for ServerboundConfigurationPacket
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