Skip to main content

serialize_client_state

Function serialize_client_state 

pub fn serialize_client_state(state: ClientState) -> u8
Expand 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.