chunkedge_protocol/packets/login/login_disconnect_s2c.rs
1use std::borrow::Cow;
2
3use chunkedge_binary::{Decode, Encode};
4use chunkedge_text::JsonText;
5
6use crate::{Packet, PacketState};
7
8#[derive(Clone, Debug, Encode, Decode, Packet)]
9#[packet(state = PacketState::Login)]
10/// Sent by the server to the client to disconnect the client from the server.
11pub struct LoginDisconnectS2c<'a> {
12 pub reason: Cow<'a, JsonText>,
13}