Skip to main content

serialize_highlight

Function serialize_highlight 

pub fn serialize_highlight(highlighted: bool) -> u8
Expand description

Serialize a highlight flag into its single-byte wire representation.

§Arguments

  • highlighted - true if the client is the daemon’s currently selected submenu client, false otherwise.

§Returns

1 for true, 0 for false. Used as the payload of a tagged crate::protocol::TAG_HIGHLIGHT frame.