chunkedge_protocol/packets/login/
hello_s2c.rs

1use chunkedge_binary::{Bounded, Decode, Encode};
2
3use crate::{Packet, PacketState};
4
5#[derive(Copy, Clone, Debug, Encode, Decode, Packet)]
6#[packet(state = PacketState::Login)]
7/// Sent by the server to the client to initiate the login process.
8pub struct HelloS2c<'a> {
9    pub server_id: Bounded<&'a str, 20>,
10    pub public_key: &'a [u8],
11    pub verify_token: &'a [u8],
12    pub should_authenticate: bool,
13}