pub enum ServerboundStatusPacket {
Ping(ServerboundStatusPing),
PingStart(ServerboundStatusPingStart),
}Expand description
serverbound packets in the Status state.
Variants§
Ping(ServerboundStatusPing)
PingStart(ServerboundStatusPingStart)
Implementations§
Source§impl ServerboundStatusPacket
impl ServerboundStatusPacket
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 ServerboundStatusPacket
impl Clone for ServerboundStatusPacket
Source§fn clone(&self) -> ServerboundStatusPacket
fn clone(&self) -> ServerboundStatusPacket
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 ServerboundStatusPacket
impl Debug for ServerboundStatusPacket
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