#[non_exhaustive]pub enum LoginInbound {
Disconnect(ByteString),
EncryptionRequest {
server_id: ByteString,
public_key: Bytes,
verify_token: Bytes,
},
Compress(i32),
Success {
uuid: Option<Uuid>,
username: ByteString,
},
PluginRequest {
message_id: i32,
channel: ByteString,
},
}Expand description
Login-state packets from the server, common to every version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disconnect(ByteString)
The server refused the login (chat JSON).
EncryptionRequest
Online mode: the server asks for encryption.
Fields
§
server_id: ByteStringServer id (usually empty) for the session hash.
Compress(i32)
Compression starts with the next packet.
Success
Login finished; the connection is in the play state.
Fields
§
username: ByteStringThe player’s name.
PluginRequest
A login plugin request (1.13+): answered with “not understood”.
Trait Implementations§
Source§impl Clone for LoginInbound
impl Clone for LoginInbound
Source§impl Debug for LoginInbound
impl Debug for LoginInbound
Source§impl PartialEq for LoginInbound
impl PartialEq for LoginInbound
impl StructuralPartialEq for LoginInbound
Auto Trait Implementations§
impl !Freeze for LoginInbound
impl Forget for LoginInbound
impl RefUnwindSafe for LoginInbound
impl Send for LoginInbound
impl Sync for LoginInbound
impl Unpin for LoginInbound
impl UnsafeUnpin for LoginInbound
impl UnwindSafe for LoginInbound
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