Skip to main content

deserialize_client_state

Function deserialize_client_state 

pub fn deserialize_client_state(byte: u8) -> ClientState
Expand description

Deserialize a single byte into a ClientState variant.

§Arguments

§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.