Skip to main content

read_message

Function read_message 

Source
pub async fn read_message(
    stream: &mut TcpStream,
    buf: &mut Vec<u8>,
    wait: Duration,
) -> ReadMessageOutcome
Expand description

Read one framed message from stream, retaining incomplete bytes in buf.