chunkedge_protocol/packets/configuration/
store_cookie_s2c.rs

1use std::borrow::Cow;
2
3use chunkedge_binary::{Bounded, 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/// Stores a cookie on the client
11pub struct StoreCookieS2c<'a> {
12    pub key: Ident<Cow<'a, str>>,
13    pub payload: Bounded<&'a [u8], 5120>,
14}