pub enum ServerboundHandshakePacket {
LegacyServerListPing(ServerboundHandshakeLegacyServerListPing),
SetProtocol(ServerboundHandshakeSetProtocol),
}Expand description
serverbound packets in the Handshake state.
Variants§
LegacyServerListPing(ServerboundHandshakeLegacyServerListPing)
SetProtocol(ServerboundHandshakeSetProtocol)
Implementations§
Source§impl ServerboundHandshakePacket
impl ServerboundHandshakePacket
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 ServerboundHandshakePacket
impl Clone for ServerboundHandshakePacket
Source§fn clone(&self) -> ServerboundHandshakePacket
fn clone(&self) -> ServerboundHandshakePacket
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 Debug for ServerboundHandshakePacket
impl Debug for ServerboundHandshakePacket
impl StructuralPartialEq for ServerboundHandshakePacket
Auto Trait Implementations§
impl Freeze for ServerboundHandshakePacket
impl RefUnwindSafe for ServerboundHandshakePacket
impl Send for ServerboundHandshakePacket
impl Sync for ServerboundHandshakePacket
impl Unpin for ServerboundHandshakePacket
impl UnsafeUnpin for ServerboundHandshakePacket
impl UnwindSafe for ServerboundHandshakePacket
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