Function deserialize_client_state
pub fn deserialize_client_state(byte: u8) -> ClientStateExpand description
Deserialize a single byte into a ClientState variant.
§Arguments
byte- The single payload byte of acrate::protocol::TAG_STATE_CHANGEframe, equal to aClientState’s#[repr(u8)]discriminant.
§Returns
The decoded ClientState.
§Panics
Panics if byte does not match a known ClientState discriminant. An
unknown value indicates either a protocol-version mismatch between the
daemon and client or corruption on the pipe - both unrecoverable, matching
the codebase’s “broken bookkeeping -> panic” convention.