pub struct EncryptionRequestPacket {
pub server_id: String,
pub public_key: Vec<u8>,
pub verify_token: Vec<u8>,
pub should_authenticate: bool,
}Expand description
Clientbound encryption request (packet ID 0x01 in LOGIN state).
Fields§
§server_id: StringServer ID (empty string for modern Minecraft).
public_key: Vec<u8>DER-encoded RSA public key.
verify_token: Vec<u8>Random verify token (4 bytes).
should_authenticate: boolWhether the server should authenticate the player (1.20.5+).
Trait Implementations§
Source§impl Clone for EncryptionRequestPacket
impl Clone for EncryptionRequestPacket
Source§fn clone(&self) -> EncryptionRequestPacket
fn clone(&self) -> EncryptionRequestPacket
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 EncryptionRequestPacket
impl Debug for EncryptionRequestPacket
Auto Trait Implementations§
impl Freeze for EncryptionRequestPacket
impl RefUnwindSafe for EncryptionRequestPacket
impl Send for EncryptionRequestPacket
impl Sync for EncryptionRequestPacket
impl Unpin for EncryptionRequestPacket
impl UnsafeUnpin for EncryptionRequestPacket
impl UnwindSafe for EncryptionRequestPacket
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