chunkedge_protocol/packets/login/
cookie_request_s2c.rs

1use std::borrow::Cow;
2
3use chunkedge_binary::{Decode, Encode};
4use chunkedge_ident::Ident;
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 request a cookie.
11pub struct CookieRequestS2c<'a> {
12    pub key: Ident<Cow<'a, str>>,
13}