Skip to main content

read_frame

Function read_frame 

Source
pub async fn read_frame(
    stream: &mut dyn MeshStream,
) -> Result<MeshFrame, MeshError>
Expand description

Read a single framed message from a mesh stream.

The transport delivers one message per recv, carrying exactly what write_frame sent: [4-byte len][type][payload]. The declared length must match the message and stay under the mesh cap.