Function read_frame
async fn read_frame(
client: &mut WindowsControlChannelClient,
pending: &mut Vec<u8>,
max_frame_len: u32,
) -> Option<Vec<u8>>Expand description
Receive until pending holds a complete frame, then split it off.
§Arguments
client- The connected control-channel client.pending- Bytes received but not yet returned as a frame.max_frame_len- Largest frame body to accept.
§Returns
The frame including its length prefix, or None on disconnect, error, or
an oversized frame.