Function serialize_client_state
pub fn serialize_client_state(state: ClientState) -> u8Expand description
Serialize a ClientState into its single-byte wire representation.
§Arguments
state- The client state to serialize.
§Returns
The state’s #[repr(u8)] discriminant, used as the payload of a tagged
crate::protocol::TAG_STATE_CHANGE frame.