chunkedge_protocol/packets/configuration/
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::Configuration)]
10/// Request the client to send the cookie with the specified key.
11pub struct CookieRequestS2c<'a> {
12    pub key: Ident<Cow<'a, str>>,
13}