pub enum ClientboundStatusPacket {
ServerInfo(ServerInfo),
Ping(Ping),
}Expand description
Every Clientbound packet of the Status state.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ClientboundStatusPacket
impl Clone for ClientboundStatusPacket
Source§impl Debug for ClientboundStatusPacket
impl Debug for ClientboundStatusPacket
Source§impl From<Ping> for ClientboundStatusPacket
impl From<Ping> for ClientboundStatusPacket
Source§impl From<ServerInfo> for ClientboundStatusPacket
impl From<ServerInfo> for ClientboundStatusPacket
Source§fn from(p: ServerInfo) -> Self
fn from(p: ServerInfo) -> Self
Converts to this type from the input type.
Source§impl PacketSet for ClientboundStatusPacket
impl PacketSet for ClientboundStatusPacket
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 ClientboundStatusPacket
impl PartialEq for ClientboundStatusPacket
impl StructuralPartialEq for ClientboundStatusPacket
Auto Trait Implementations§
impl !Freeze for ClientboundStatusPacket
impl RefUnwindSafe for ClientboundStatusPacket
impl Send for ClientboundStatusPacket
impl Sync for ClientboundStatusPacket
impl Unpin for ClientboundStatusPacket
impl UnsafeUnpin for ClientboundStatusPacket
impl UnwindSafe for ClientboundStatusPacket
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