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