pub enum ServerboundStatusPacket {
PingStart(PingStart),
Ping(Ping),
}Expand description
Every Serverbound packet of the Status state.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ServerboundStatusPacket
impl Clone for ServerboundStatusPacket
Source§impl Debug for ServerboundStatusPacket
impl Debug for ServerboundStatusPacket
Source§impl From<Ping> for ServerboundStatusPacket
impl From<Ping> for ServerboundStatusPacket
Source§impl From<PingStart> for ServerboundStatusPacket
impl From<PingStart> for ServerboundStatusPacket
Source§impl PacketSet for ServerboundStatusPacket
impl PacketSet for ServerboundStatusPacket
Source§fn decode_raw(raw: &RawPacket) -> DecodeResult<Self>
fn decode_raw(raw: &RawPacket) -> DecodeResult<Self>
Decodes a raw packet into the matching variant (strict: no trailing bytes).
Source§fn encode_body(&self, w: &mut BytesMut) -> EncodeResult
fn encode_body(&self, w: &mut BytesMut) -> EncodeResult
Encodes the packet body (without the id).
Source§impl PartialEq for ServerboundStatusPacket
impl PartialEq for ServerboundStatusPacket
impl StructuralPartialEq for ServerboundStatusPacket
Auto Trait Implementations§
impl Freeze for ServerboundStatusPacket
impl RefUnwindSafe for ServerboundStatusPacket
impl Send for ServerboundStatusPacket
impl Sync for ServerboundStatusPacket
impl Unpin for ServerboundStatusPacket
impl UnsafeUnpin for ServerboundStatusPacket
impl UnwindSafe for ServerboundStatusPacket
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